Andrei Dziahel and Steve Chavez
9eda78eda5
server-port can be 0
...
Introduces special value of 0 for port to be assigned randomy
2023-11-23 22:35:28 -05:00
Andrei Dziahel and GitHub
df97a5071f
Display an actual TCP port app is bound to ( #3034 )
2023-11-23 18:17:16 -05:00
Tim Abdulla and GitHub
1c60b50e2e
Add aggregate functions ( #2925 )
...
The aggregate functions SUM(), MAX(), MIN(), AVG(), and COUNT() are now supported.
2023-11-23 14:03:03 -05:00
Andrei Dziahel and GitHub
c3301a1653
feat: implement server-timing-enabled config parameter ( #3064 )
2023-11-22 17:57:50 -05:00
Andrei Dziahel and GitHub
abcb21c69a
ci: cache Nix store with cache-nix-action ( #2992 )
...
* ci: try nix-community/cache-nix-action
* ci: add cache-id param to setup-nix action
* ci: tidy up cache keys for non-nix jobs
* ci: merge-nix-caches-linux job
* ci: merge caches other way around
* ci: reduce number of caches
Should prevent disk overflow
* ci: change cache id prefix for merge
* ci: comment out cache merging job
* ci: revert cache id prefix
* ci: setup-nix: use latest cache-nix-action
Among others, makes action logs look more tidy (see https://github.com/nix-community/cache-nix-action/commit/17d19d3d8be918757589635bc1a6830be0b129d2 )
* ci: use test-pg cache key for loadtest
2023-11-21 18:56:23 -05:00
steve-chavez
475b4601ca
split role settings from function settings
...
Also add doc for GRANT SET ON PARAMETER, see
https://github.com/PostgREST/postgrest/pull/3058 .
2023-11-21 17:49:35 -05:00
Taimoor Zaeem and Steve Chavez
49e3d2c4b4
add documentation for statement_timeout set on functions
2023-11-21 17:49:35 -05:00
steve-chavez
f7bf2157f3
feat: apply super settings on impersonated roles
...
If they have GRANT SET ON PARAMETER <setting> TO authenticator
2023-11-21 10:54:56 -05:00
Taimoor Zaeem and GitHub
125f10a60f
feat: add statement_timeout set on functions ( #3056 )
2023-11-17 12:36:51 -05:00
Taimoor Zaeem and GitHub
5502dce556
add documentation for timezone preference ( #698 )
2023-11-15 08:24:25 -05:00
Anwar Knyane and GitHub
084e8c2950
make the jwt generation easier :) ( #697 )
2023-11-14 11:31:33 -05:00
Taimoor Zaeem and GitHub
3c1a7f2641
feat: add timezone in Prefer header ( #3024 )
...
* increase reloading timeout in io-tests
* increase memory test by 1M
2023-11-13 14:16:27 -05:00
omahs and GitHub
f10d4139fe
nix: fix typos in README
2023-11-08 11:43:42 -05:00
Laurence Isla and GitHub
7e7e494b31
Remove former sponsors ( #694 )
2023-11-07 17:24:46 -05:00
Laurence Isla and Steve Chavez
99b705d44f
chore: remove former sponsors
2023-11-07 16:25:47 -05:00
Laurence Isla and GitHub
e0586c3afa
add Neon as new sponsor ( #693 )
2023-11-06 22:49:53 -05:00
Laurence Isla and GitHub
379d9d6298
chore: add Neon as sponsor
2023-11-06 20:02:58 -05:00
Laurence Isla and Steve Chavez
2c35257eec
chore: add prefix info to the PR template
2023-11-03 19:42:06 -05:00
steve-chavez
ed90774f53
test: query the empty string
2023-11-03 12:58:54 -05:00
Laurence Isla
96ca177c31
transaction-scoped settings are now shown clearly in the postgres logs
2023-11-02 15:50:22 -05:00
Laurence Isla
226400a5bc
break:remove the db-use-legacy-gucs config
...
BREAKING CHANGE
All PostgreSQL versions will use JSON GUCs for headers, cookies and JWT claims.
2023-11-02 15:50:22 -05:00
Taimoor Zaeem and GitHub
57ceabb260
add documentation for server-cors-allowed-origins config ( #688 )
2023-10-30 11:08:12 -05:00
b85ee953b7
doc: media type handlers ( #689 )
...
* reference: media type handlers
* Use function instead of computed field in editable task
---------
Co-authored-by: Laurence Isla <lau.isla.c@gmail.com >
2023-10-28 12:00:37 -05:00
Laurence Isla and GitHub
b235227119
allow all origins when server-cors-allowed-origins is an empty string
2023-10-27 21:30:56 -05:00
Taimoor Zaeem and GitHub
5c9c7f4ff4
fix: HTTP status responses for upserts
...
* PUT returns 201 instead of 200 when rows are inserted
* POST with "Prefer: resolution=merge-duplicates" returns 200 instead of 201 when no rows are inserted
2023-10-26 20:49:20 -05:00
steve-chavez
82b38341bf
feat: sql handlers for custom media types
...
* test text/html and drop HtmlRawOutputSpec.hs
* all tests passing, removed all pendingWith
* make functions compatible with pg <= 12
* move custom media types tests to own spec
* anyelement aggregate
* apply aggregates without a final function
* overriding works
* overriding anyelement with particular agg
* cannot override vendored media types
* plan spec works with custom aggregate
* renamed media types to make clear which ones are overridable
* correct content negotiation with same weight
* text/tab-separated-values media type
* text/csv with BOM plus content-disposition header
2023-10-26 09:04:02 -05:00
steve-chavez
4a90e9fbd9
break: db-root-spec default app/openapi+json media
...
BREAKING CHANGE
Can be done later with custom media types
2023-10-26 09:04:02 -05:00
steve-chavez
14d030b96c
break: remove binary field logic, raw-media-types
...
BREAKING CHANGE
Can be done later with custom media types
2023-10-26 09:04:02 -05:00
Wolfgang Walther
6920a88dc0
nix: Fix postgrest-release on rel-branches pushing to the right branch
2023-10-25 19:09:21 +02:00
Wolfgang Walther
966f8df33f
changelog: update to 11.2.2
2023-10-25 19:08:04 +02:00
Wolfgang Walther
98bd1de1cd
nix: Allow running postgrest-release on rel- branches
2023-10-25 16:29:03 +02:00
Taimoor Zaeem and GitHub
d94286c185
feat: add config to specify CORS origins ( #2986 )
2023-10-24 09:38:25 -05:00
Taimoor Zaeem and GitHub
618f93dec1
test: fix typos in batch upsert tests
2023-10-21 16:29:43 -05:00
Laurence Isla and GitHub
317619bf62
fix: regression by reverting fix that returned 206 when first-pos=length in Range header
2023-10-21 16:28:08 -05:00
steve-chavez
eb238ad678
test: DRY scache/config sleep in io tests
...
Also increase schema cache sleep to 0.2 as 0.1 tends to fail in CI.
2023-10-20 17:53:54 -05:00
steve-chavez
54786a6c04
fix: unnecessary count() on RPC returning single
2023-10-19 15:54:22 -05:00
steve-chavez
00f3cb3746
test: prove RPC returning single always gives 1
2023-10-19 15:54:22 -05:00
Andrei Dziahel and GitHub
e977032847
build: add cabal.project.freeze ( #3004 )
2023-10-19 09:26:46 -05:00
dependabot[bot] and Steve Chavez
5c314e3f02
Bump urllib3 from 2.0.6 to 2.0.7
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.6...2.0.7 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-18 13:09:04 -05:00
Taimoor Zaeem and GitHub
f10b4c3268
test: add tests for batch upserts ( #3005 )
2023-10-13 09:47:26 -03:00
Andrei Dziahel and GitHub
dc01c748ae
feat: add more perf counters to Server-Timing ( #2983 )
2023-10-12 09:55:30 -03:00
Taimoor Zaeem and GitHub
bae8dc3283
add documentation for JWT caching ( #683 )
2023-10-10 23:22:41 -03:00
Laurence Isla and GitHub
056c748c5f
refactor: DRY and enforce error format
2023-10-10 11:42:36 -05:00
Steve Chavez and GitHub
93f2b0093c
references: remark NOLOGIN impersonated roles
2023-10-07 19:20:48 -03:00
Taimoor Zaeem and GitHub
5ba370fe0a
add documentation for handling preference ( #684 )
2023-10-07 00:23:41 -03:00
Kam Ting Hoi and GitHub
818387f24e
fix: range request with 0 rows and 0 offset return status 416 ( #2991 )
2023-10-07 00:10:17 -03:00
steve-chavez
a9d6c318fd
nix: instructions for static binary
2023-10-06 19:54:05 -03:00
steve-chavez
2aa58164ab
refactor: move errors to ApiRequestError
2023-10-06 01:16:45 -03:00
steve-chavez
df08d7f3ff
refactor: rename JSONParseError to PGRSTParseError
...
The error name is too generic otherwise.
2023-10-06 01:16:45 -03:00
steve-chavez
3dd292be46
refactor: DRY application/json on Error.hs
...
Small refactor to help with:
https://github.com/PostgREST/postgrest/issues/2901
2023-10-06 01:16:45 -03:00