Wolfgang Walther
f884da79fe
bump version to 11.2.2
2023-10-25 16:35:20 +02:00
Laurence Isla and Wolfgang Walther
10e72ba0c1
fix: regression by reverting fix that returned 206 when first-pos=length in Range header
2023-10-25 16:35:20 +02:00
Kam Ting Hoi and Wolfgang Walther
e1e0cea494
fix: range request with 0 rows and 0 offset return status 416 ( #2991 )
2023-10-25 16:16:21 +02:00
Laurence Isla and Steve Chavez
d07b5acf15
Bump to v11.2.1
2023-10-04 00:07:09 -03:00
Laurence Isla and Steve Chavez
64d02d7375
fix: regression that rejects URI connection strings with certain unescaped characters in the password
2023-10-04 00:07:09 -03:00
Laurence Isla and Steve Chavez
5c822b7ec4
fix: RPCs not embedding correctly when using overloaded functions for computed relationships
2023-10-04 00:07:09 -03:00
steve-chavez
a45c639a97
fix: arrow filter on RPC returning TABLE+composite
2023-10-04 00:07:09 -03:00
steve-chavez
1e711051da
fix: unnecessary set default_transaction_isolation
2023-10-04 00:07:09 -03:00
Laurence Isla and Steve Chavez
cf3cd4b8d0
Add missing changelog entries
2023-10-04 00:07:09 -03:00
steve-chavez
6475f254f7
fix: inconsistent Preference-Applied
...
* Don't apply `tx=commit` if the transaction doesn't commit
* Apply `count=exact`
* Also simplifies the Preference-Applied logic, removing the need for
some functions.
2023-10-04 00:07:09 -03:00
Taimoor Zaeem and Steve Chavez
d7dfdaa03f
fix: range request with first position same as length return status 206
2023-10-04 00:07:09 -03:00
Taimoor Zaeem and Steve Chavez
6c8ce3929c
fix: duplicate headers in response
2023-10-04 00:07:09 -03:00
Diogo Biazus and Steve Chavez
f84bc6a0ff
fix: schema cache and configuration reloading with NOTIFY not working on Windows
2023-10-04 00:07:09 -03:00
Taimoor Zaeem and Steve Chavez
82ecf836c4
fix: application/vnd.pgrst.array not accepted as a valid mediatype
2023-10-04 00:07:09 -03:00
steve-chavez
c820efb64a
bump version to 11.2.0
2023-08-10 08:51:58 -05:00
steve-chavez
e30bf53afa
deprecate: target embedding disambiguation
2023-08-10 08:14:23 -05:00
steve-chavez
5ce020d5bc
fix: impersonated role applying superuser settings
2023-08-09 20:05:22 -05:00
Taimoor Zaeem and GitHub
fbf9bf21c2
feat: add optional nulls=stripped parameter for mediatypes applicatio… ( #2894 )
2023-08-09 18:49:22 -05:00
Taimoor Zaeem and Steve Chavez
d490bf09fd
feat: add Preference-Applied header in response for Prefer: return=representation/minimal/headers-only
2023-08-05 02:21:50 -05:00
Laurence Isla and GitHub
aa53623aac
fix: error when a function returns RECORD or SETOF RECORD
2023-08-03 20:09:55 -05:00
Taimoor Zaeem and GitHub
d0a71de2da
chore: improve details field of the singular error response ( #2876 )
2023-08-01 19:37:54 -05:00
Laurence Isla and GitHub
40c2bcd4a1
fix: paramaters of type character and bit not ignoring length
...
- Fixes the error "value too long for type character(1)" when the char length of the parameter was bigger than one.
2023-07-31 18:36:37 -05:00
steve-chavez
2d00d7d248
fix: null filtering on embed when column=relation
2023-07-27 22:43:13 -05:00
Laurence Isla and GitHub
630e0a1691
fix: character and bit columns with fixed length not inserting/updating properly
...
Fixes the error "value too long for type character(1)" when the char length of the column was bigger than one.
2023-07-21 11:30:01 -05:00
steve-chavez
28d5278d62
fix: use index on jsonb/jsonb arrow filter/order
2023-07-12 14:51:21 -05:00
steve-chavez
e332f038ef
fix: HEAD unnecessarily executing aggregates
2023-07-10 15:05:51 -05:00
Laurence Isla and GitHub
774d015eb5
feat: add the --version CLI option to print the version information
2023-07-07 18:19:02 -05:00
Laurence Isla and GitHub
7508230760
feat: allow to verify the PostgREST version through SQL
2023-07-03 18:31:32 -05:00
steve-chavez
a17dd41d6b
fix: Prefer: missing=default with DOMAIN defaults
2023-06-30 17:46:16 -05:00
Alexander Ljungberg and Steve Chavez
0a1564ba5a
feat: data representations allow custom parsing and formatting of API fields.
...
See PR #2523 . Most notable code changes:
- Load data representation casts into schema cache.
- Data representations for reads, filters, inserts, updates, views, over joins.
- `CoercibleField` represents name references in queries where coercion may be needed.
- `ResolverContext` help facilitate field resolution during planning.
- Planner 'resolves' names in the API query and pairs them with any implicit conversions to be used in the query builder stage.
- Tests for all of the above.
- More consistent naming (TypedX -> CoercibleX).
New: unit tests for more data representation use cases; helpful as examples as well.
New: update CHANGELOG with data representations feature description.
Fixed failing idempotence test.
New: replace date formatter test with one that does something.
Fixup: inadvertent CHANGELOG change after rebase.
Cleanup: `tfName` -> `cfName` and related.
Document what IRType means.
Formatting.
New: use a subquery to interpret `IN` literals requiring data rep transformation.
- With the previous method, very long queries such as `ANY (ARRAY[test.color('000100'), test.color('CAFE12'), test.color('01E240'), ...` could be generated. Consider the case where the parser function name is 45 characters and there's a hundred literals. That's 4.5kB of SQL just for the function name alone!
- New version uses `unnest`: `ANY (SELECT test.color(unnest('{000100,CAFE12,01E240,...}'::text[]))` to produce a much shorter query.
- This is likely to be more performant and either way much more readable and debuggable in the logs.
2023-06-29 15:01:58 -05:00
steve-chavez
40dc46ed2e
fix: compilation on Ubuntu, GHC 9.0.2 compat
2023-06-21 16:22:30 -05:00
steve-chavez
fad47324c3
fix: OPTIONS not accepting all available media
2023-06-13 22:00:21 -05:00
steve-chavez
1f13e43abe
bump version to 11.1.0
2023-06-07 19:03:31 -05:00
steve-chavez
fac797c766
changelog: clarify 2781
2023-06-07 18:28:01 -05:00
steve-chavez
07cb0b582e
feat: recover on pg_terminate_backend
2023-06-06 14:41:37 -05:00
steve-chavez
bcce7b1c53
fix: stop retrying on "no password supplied"
2023-06-06 14:41:37 -05:00
Steve Chavez and GitHub
a852b766eb
Fix dropping schema cache reload notifications
...
* test: bad schema reload
* refactor: DRY using the "extra" lib
* refactor: move worker funtions inside AppState
* Also rename Workers.hs to Admin.hs
2023-06-02 12:22:17 -05:00
steve-chavez
14be3fb671
feat: add pre-config function
...
Allows using the in-database configuration without SUPERUSER
2023-05-28 10:21:13 -05:00
steve-chavez
009250006e
feat: add db-pool-timeout alias
...
For db-pool-max-idletime
2023-05-22 18:34:18 -03:00
Robert and GitHub
f9f0f79fa9
feat: use hasql-pool-0.10, add db-pool-max-idletime ( #2786 )
...
- new option db-pool-max-idletime limits the maximal idle time of a
postgresql connection, defaults to 30 seconds
- this essentially restores the db-pool-timeout option from versions
<=10, with more specific name
2023-05-16 23:00:40 +02:00
steve-chavez
4197d2f739
bump version to 11.0.1
2023-04-27 21:30:40 -05:00
steve-chavez
c10ba8e214
fix: skew of 30 seconds for JWT validation
2023-04-27 21:06:06 -05:00
steve-chavez
887948d259
fix: missing=default error msg on generated column
2023-04-27 19:27:09 -05:00
steve-chavez
c63786733a
fix: no schema privilege for schema cache
...
This was due to the usage of pg_get_serial_sequence
2023-04-27 19:27:09 -05:00
steve-chavez
dd2f5511d8
bump version to 11.0.0
2023-04-16 14:22:38 -05:00
steve-chavez
49c349c846
chore: CHANGELOG to include release 10.2.0
2023-04-16 12:18:10 -05:00
steve-chavez
aaf77902f6
feat: isolation level for roles/functions
2023-04-15 18:05:04 -05:00
Laurence Isla and GitHub
0a2b7064c7
fix: PATCH requests not recognizing embedded filters
...
- Already fixed in #2618
- Adds tests and CHANGELOG
2023-04-14 16:42:55 -05:00
steve-chavez
e572d1d1a2
feat: configurable role settings
2023-04-10 14:27:08 -05:00
steve-chavez
c06237cc56
fix: db settings and pg version query not prepared
2023-04-10 14:27:08 -05:00