Laurence Isla and GitHub
867f2569a0
ci: Fix Windows build using Stack
...
Added PostgreSQL binaries to the PATH and removed the use of msys2-keyring
2022-05-05 00:06:00 -05:00
Laurence Isla and GitHub
a2349d90c0
Reorganize error groups
...
* Grouped Hasql errors into one error and renamed it to InternalError
* Move all the General errors to ApiRequest errors
2022-05-02 21:16:31 -05:00
Laurence Isla and GitHub
5ad8800773
feat: Allow limit=0 in query params to return an empty array
2022-04-28 17:14:29 -05:00
Laurence Isla and GitHub
a8477b7822
Add tests for the ~ ltree operator ( #2267 )
2022-04-26 22:48:15 +02:00
Laurence Isla and GitHub
9bdb4e5c4f
ci: remove armv7 architectures for ARM builds
...
Now only builds aarch64 on the remote server without Docker
2022-04-23 20:30:07 +02:00
Laurence Isla and GitHub
bc7d54c7d2
Add CI for ARM architectures ( #2127 )
2022-04-18 17:40:32 +02:00
Laurence Isla and GitHub
7589102c6c
Fix misleading disambiguation error where relationship looks like valid syntax
...
* Add columns for the m2m relationship
2022-04-12 00:02:19 +02:00
Laurence Isla and GitHub
9124dfd427
Bypass FreeBSD builds due to timeouts
2022-03-26 15:14:54 -05:00
Laurence Isla
8e86177486
bump version to 9.0.0.20220326
2022-03-26 12:26:47 -05:00
Laurence Isla and GitHub
fe898c27ae
Fix incorrectly placed feature in CHANGELOG
...
Move incorrectly placed feature for PostgREST errors from v9.0.0 to Upcoming
2022-03-26 11:08:37 -05:00
Laurence Isla and GitHub
d6834e8bf8
Add 'PGRST' error code to differentiate from PostgreSQL errors
2022-03-04 15:57:38 -05:00
Laurence Isla and GitHub
99d0b805df
fix: Using GET with certain Content-Type headers now correctly calls the no parameter function if it exists
...
Using GET with text/plain or application/octet-stream as Content-Type headers no longer returns 404 Not Found when a function with no parameters exists
2022-02-28 13:23:55 -05:00
Laurence Isla and GitHub
69070f341a
fix: Remove admin-server-port from in-db configuration
2022-02-23 17:26:01 -05:00
Laurence Isla and GitHub
c858d158aa
Add hint to verify table and foreign key existence on a relationship error
2021-12-20 12:11:07 -05:00
Laurence Isla and GitHub
62243852b6
feat: Improve error message for ambiguous embedding
...
- Adds a relevant hint that includes unambiguous embedding suggestions.
- Joins origin and target into one single embedding key
2021-11-23 22:23:29 -05:00
Laurence Isla and GitHub
4e07846c5d
fix: Add tests for embedding on overloaded functions with a default param
...
Resolves #1672
Was actually fixed in #1841 / 67c2ed7 , this just adds the tests to confirm it.
2021-11-19 09:00:16 +01:00
Laurence Isla and GitHub
91689e28f0
Remove partitions from the schema cache
...
breaking: Embedding, OpenApi and other features related to the schema cache are no longer allowed on partitions.
2021-11-18 14:12:14 -05:00
Laurence Isla and GitHub
40f9a6068a
Allow overloaded functions if one has a single unnamed JSON param
...
Avoids the breaking change in #1927 : If there's a function "my_func" having a single unnamed json param and other overloaded pairs(with any number of params), PostgREST won't be able to resolve a POST request to "my_func".
2021-11-08 18:26:33 -05:00
laurenceisla and GitHub
42d7cf8ae5
Add db-embed-default-join config parameter to the configuration example
2021-10-15 19:09:40 -05:00
laurenceisla and GitHub
627c3c34b7
feat: Make GUC names for headers, cookies and jwt claims compatible with PostgreSQL v14
...
Getting the value for a header GUC on PostgreSQL v14 is done using `current_setting('request.headers')::json->>'name-of-header'` and in a similar way for `request.cookies` and `request.jwt.claims`
PostgreSQL versions below 14 can opt in to the new JSON GUCs by setting the `db-use-legacy-gucs` config option to false (true by default)
2021-10-12 12:58:52 -05:00
laurenceisla and GitHub
243e4f0408
test: correct limit proc results tests ( #1951 )
...
Query params where being appended using `?` instead of `&`
2021-09-16 22:03:35 -05:00
laurenceisla and GitHub
ed5072f4b1
fix: Detect default values for String types in OpenAPI output ( #1928 )
2021-08-27 21:59:54 -05:00
laurenceisla and GitHub
4e4548d702
feat: Include partitioned tables into the schema cache
...
Allows embedding, UPSERT, INSERT with Location response, OPTIONS request and OpenAPI support for partitioned tables
2021-08-13 15:06:56 -05:00
laurenceisla and GitHub
db95bd1c37
feat: Add compatibility with connection poolers on transaction mode
...
Update the hasql-transaction library to version 1.0.1
Add hints and kill thread at configuration read when using incompatible pooling modes: statement pooling and transaction pooling with prepared statements enabled.
2021-07-15 13:39:55 -05:00
Laurence Isla
6fe88ef53c
Add Oblivious as a sponsor and a Sponsors section to the docker hub description
2021-07-12 19:30:35 -05:00
laurenceisla and GitHub
67c2ed7c62
feat: Show comprehensive error when an RPC is not found in a stale schema cache ( #1841 )
...
* Add 300 response for overloaded functions with same argument names but different types
* Add Path type to handle validations and errors before defining the Target
2021-07-06 09:19:26 -05:00
laurenceisla and GitHub
214a92f207
Change the default db-channel-enabled config value from False to True ( #1880 )
2021-06-25 11:12:28 -05:00
laurenceisla and GitHub
59e0b006a5
fix: Location header with a null PK on a view ( #1875 )
...
Regression after #1475
2021-06-18 18:09:19 -05:00
laurenceisla and GitHub
1b12b112a1
fix: Add a hint and clarification to the no relationship found error ( #1858 )
2021-05-31 12:15:31 -05:00
Laurence Isla and Wolfgang Walther
b4ca70708a
fix: Fix requests for overloaded functions from html forms to no longer hang
...
Fixes #1846
2021-05-13 10:07:49 +02:00
laurenceisla and GitHub
f6b3a5cc22
fix: Make OPTIONS consider view instead of triggers ( #1824 )
2021-04-23 18:12:43 -05:00
laurenceisla and GitHub
4b46c4eff3
feat: Add explicit headers-only POST request using Prefer header
...
Allows using header "Prefer=headers-only" explicitly to get a response with only a Location header.
BREAKING CHANGE: Change default for POST request from headers-only to minimal
Resolves #1656
2021-04-14 00:14:12 +02:00