steve-chavez
b20e1150a5
Add GUC for accessing the Authorization header
2020-01-21 12:28:05 -05:00
steve-chavez
aa0d6a6831
Update BACKERS.md
2020-01-21 12:28:05 -05:00
Remo and Steve Chavez
da1cf9f76d
Add postgrest-sessions-example to Example Apps ( #294 )
2020-01-19 14:17:55 -05:00
Steve Chavez and GitHub
4cd05681dd
Add embedding disambiguation section ( #290 )
2020-01-06 09:43:54 -05:00
Steve Chavez and GitHub
663faa1f82
Allow specifying the constraint name to disambiguate an embedding ( #1430 )
...
Makes previous duck typing regex unnecessary since the FK can be renamed
to a singular name or to any other format.
* Remove embedding with duck typed column names
* Allow embedding by foreign key name
* Add junction disambiguation tests
2020-01-06 09:42:33 -05:00
YUKISHITA Yohsuke and Steve Chavez
99b13fa25f
Upsert with "Prefer: resolution=merge-duplicates" on specified columns ( #1327 ) ( #1432 )
...
Allow query param 'on_conflict=key1,key2,...' to upsert with explicit columns with unique
constraint.
2019-12-29 11:52:58 -05:00
steve-chavez
e47d19d4dc
Fix livereload host
2019-12-28 11:21:30 -05:00
Steve Chavez and GitHub
4eefe14706
Add GISOPS community tutorial ( #291 )
2019-12-23 13:46:22 -05:00
Copple and Steve Chavez
8dba0dcc11
Remove fragment from Nimbus blog post URL ( #288 )
2019-12-17 12:28:44 -05:00
Steve Chavez and GitHub
1b166ce048
Add Community Tutorials section ( #287 )
...
Include DO video series
2019-12-16 12:39:57 -05:00
Dmitry Wagin and Steve Chavez
458960f7c3
change server-unix-socket-mode 755 -> 660 ( #286 )
2019-12-16 08:38:25 -05:00
Dmitry Wagin and Steve Chavez
e12c1319b6
Change default server-unix-socket-mode 755 -> 660 ( #1423 )
2019-12-16 08:37:00 -05:00
Dmitry Wagin and Steve Chavez
7f365bf60b
Enforce singular behavior despite Prefer: return ( #1417 )
2019-12-08 01:49:20 -05:00
ycheng2020 and Steve Chavez
30d241fcff
Fixed the pg_listen syntax ( #285 )
...
* Fixed the pg_listen syntax
Can't run killall -SIGUSR1 postgrest: No such file or directory
Error happens because pg_listen needs the full path to killall.
2019-12-08 01:00:02 -05:00
Jean SIMARD and Steve Chavez
a0091f61a1
Typo (repeated word)
2019-11-26 11:33:28 -05:00
Danilo Amoroso and Steve Chavez
e1c9b8fe76
added documentation for server-unix-socket-mode config option
2019-11-26 11:24:43 -05:00
Dan Amoroso and Steve Chavez
2e6c78d723
add config option server-unix-socket-mode ( #1415 )
...
* added config option server-unix-socket-mode to enable custom socket permissions
* added server-unix-socket-mode input validation
2019-11-23 10:52:33 -05:00
steve-chavez
a0179cfd4b
Remove keepalive nginx recommendation
2019-11-22 10:59:24 -05:00
steve-chavez
f9c64d9f65
refactor: improve disambiguation error message
...
* reverse backwards relationships
* remove redundancy from getJoinSelects
* properly name Cardinality constructors
2019-11-17 13:28:21 -05:00
steve-chavez
4ef6926791
Update authorship
2019-11-17 13:28:21 -05:00
Evan Silberman and Steve Chávez
dbbba4e51a
Specify units for the pool timeout setting
2019-11-14 14:52:35 -05:00
Brian Wignall and Steve Chávez
9645f1011c
Fix double-and typo
2019-11-12 10:00:23 -05:00
steve-chavez
9847e60dca
Err embedding when multiple relationships found
...
When having one-to-many relationships like:
person -< message[sender]
person -< message[recipient]
person_detail -< message[sender]
person_detail -< message[recipient]
Where person_detail is a view of person.
This request:
GET "/message?select=*,sender(*)"
Is ambiguous. Both person or person_detail could be embedded.
Until now we have returned the first detected relationship but
now we return a 300 Multiple Choices error with a
descriptive error message asking the user to disambiguate.
This is more helpful for the user and also aids in cases of more
complex relationships.
2019-11-05 12:55:48 -05:00
steve-chavez
cb3d9ab625
refactor: rename RelationType to Cardinality
...
Remove Root type constructor
2019-11-05 12:55:48 -05:00
steve-chavez
db41fb454e
refactor: Rename synonyms to source columns
2019-11-05 12:55:48 -05:00
steve-chavez
3b133d5554
Fix #1397 , correct compression to XZ for osx bin
2019-10-24 13:12:39 -05:00
Fedor Ortyanov and Steve Chávez
2fc0e2f8cb
fix api.rst other status from 500 to 400
2019-10-22 10:26:53 -05:00
Steve Chávez and GitHub
22b6ff764d
Credit howtos/tuts authors ( #264 )
2019-10-18 11:03:32 -05:00
Steve Chávez and GitHub
80f763448f
Fix unique foreign key in view ( #1395 )
2019-10-16 12:45:38 -05:00
steve-chavez
a3701f5de8
Update BACKERS.md
2019-10-14 14:31:29 -05:00
steve-chavez
ed2bfc09a6
Allow PATCH/DELETE w/o Prefer when no SELECT privs
...
PATCH/DELETE can now be done without adding Prefer return=minimal when
the user doesn't have SELECT privileges.
* Also fix PATCH wrong HTTP status code
2019-10-08 12:41:39 -05:00
steve-chavez
337f821e00
refactor: remove parent embed workaround(in #647 )
...
This workaround is no more necessary since the addition of #978 .
* Also add a test for proving parent embeds offset is consistent
with other types of embeds.
2019-10-08 12:41:39 -05:00
steve-chavez
f2b126f147
refactor: Move hasql helpers to Common module
2019-10-08 12:41:39 -05:00
steve-chavez
1173bc277b
refactor: rm configSchema ref in postgrest func
...
* make TargetDefaultSpec take a schema attribute
* remove schema param from addJoinConditions
2019-10-08 12:41:39 -05:00
steve-chavez
50f2cc16ab
refactor: rm schema arg from QueryBuilder funcs
...
* Change TableName to QualifiedIdentifier in ReadQuery
and MutateQuery.
* Move removeSourceCTESchema to DbRequestBuilder.
2019-10-08 12:41:39 -05:00
steve-chavez
3325a1bbc6
Add reference for mutation embed
2019-09-30 08:47:22 -05:00
steve-chavez
6afed0b30d
Add reference for stored proc embedding
2019-09-30 08:47:22 -05:00
steve-chavez
eebe319bfd
Recommend doing make check pre-commit
2019-09-30 08:46:31 -05:00
steve-chavez
75a42b77ea
Fix M2M resource embedding on RPC and mutations
2019-09-28 13:45:18 -05:00
steve-chavez
d71d3450af
Fix PATCH embed when not having the id in ?select
2019-09-28 13:45:18 -05:00
steve-chavez
f080159268
refactor: add the returningCols function
...
* separate fieldNames from getting fkCols
* Put binaryField inside readSqlParts
* Move scalar proc logic to binaryField
* Move logic for the "SELECT *" default to DbRequestBuilder
2019-09-28 13:45:18 -05:00
steve-chavez
0183d32c7f
refactor: Remove DbRequest type
...
This type only adds an extra constructor.
2019-09-28 13:45:18 -05:00
steve-chavez
94f5894d7f
Fix self join resource embedding on PATCH
2019-09-28 13:45:18 -05:00
steve-chavez
81e5a62f25
refactor: remove fromJust in DbRequestBuilder
...
* Also comment and reorganize DbRequestBuilder
2019-09-28 13:45:18 -05:00
Lorenz Henk and Steve Chávez
4f1f80d4f2
Replace estimated with planned
...
The names changed according to https://github.com/PostgREST/postgrest/issues/1378#issuecomment-531506803
2019-09-19 11:47:22 -05:00
steve-chavez
5ef1db42ef
Add estimated count reference
2019-09-18 14:19:40 -05:00
steve-chavez
476af62326
Add planned count reference
2019-09-18 14:19:40 -05:00
steve-chavez
2186a7e1a8
Add upcoming release page
...
* Add HEAD support mention
* Add change for bulk call
2019-09-18 14:19:40 -05:00
Steve Chávez and GitHub
186381bab2
Add support for Prefer: count=planned/estimated on GET /table ( #1386 )
2019-09-18 10:13:48 -05:00
Reuben Thomas-Davis and Steve Chávez
1a18ef5a20
add server proxy uri env var for smoother swagger-ui use with docker-compose
2019-09-16 09:52:51 -05:00