Taimoor Zaeem and Steve Chavez
d6c338d588
add: config db-timezone-enabled for optional querying of timezones
...
To avoid repeated querying of `pg_timezone_names` every time schema
cache is reset, `Prefer: timezone` can be disabled by setting
`db-timezone-enabled = false`.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-04-01 12:48:38 -05:00
Michał Kłeczek and Steve Chavez
bd5de884fa
test(io): add test_so_reuseport_zero_downtime_handover
2026-03-31 13:33:33 -05:00
Michal Kleczek and GitHub
8d5b1018d3
refactor(test): provide means to validate metrics and observations
...
Some helpers are provided for introspecting metrics already (used in JWT cache tests). This change provides facilities to additionally validate emited Observation events.
A new Spec module is also implemented, adding basic tests of schema cache reloading - their main goal is to excercise the new infrastructure.
2026-03-31 13:15:56 -05:00
renovate[bot] and Wolfgang Walther
ae7d4d2553
chore(deps): update codecov/codecov-action action to v6
2026-03-27 10:34:37 +00:00
renovate[bot] and Wolfgang Walther
88afa05cf8
chore(deps): update korthout/backport-action action to v4.3.0
2026-03-27 08:45:54 +00:00
Taimoor Zaeem and Wolfgang Walther
748ba7f02b
chore: remove blank line in CHANGELOG.md
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-27 08:44:09 +00:00
Taimoor Zaeem and Wolfgang Walther
0b665ecd10
chore: correct config name in CHANGELOG.md
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-27 08:44:09 +00:00
Taimoor Zaeem and Steve Chavez
1b402d16ad
test(spec): move preference tests into separate modules
...
Towards #4751 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-26 12:36:47 -05:00
Taimoor Zaeem and Steve Chavez
135b77d12b
test(io): rename jwt-role-claim-key*.config dump files
...
These files were added to cover the config dumping of
string comparison operators in `JSPath`. Renaming and
adding a comment in these to make it clear.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-24 11:11:43 -05:00
steve-chavez
effcc080e5
chore: put ai policy first in CONTRIBUTING
...
Otherwise it's not that visible.
2026-03-23 10:10:58 -05:00
arturbent0 and Wolfgang Walther
5e504a77fa
docs: clarify debounce time window in schema cache reloads
2026-03-23 12:04:01 +00:00
arturbent0 and Wolfgang Walther
c9c6ebb53a
docs: add new terms to spellcheck dictionary
2026-03-23 12:04:01 +00:00
Artur Bento de Carvalho and Wolfgang Walther
941c2f2d17
docs: explain schema cache reload behavior with NOTIFY debouncing
...
Add a "debouncing" section to explain how PostgREST handles multiple NOTIFY events.
2026-03-23 12:04:01 +00:00
Taimoor Zaeem and Wolfgang Walther
bf7dc485b3
chore: add changelog entry for v14.7
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-23 11:22:29 +00:00
steve-chavez
622c6d3f19
fix: not logging termination unix signals
...
Under container environments like ECS, it's hard to know when PostgREST
is being terminated.
2026-03-20 13:09:10 -05:00
Taimoor Zaeem and Steve Chavez
12ef63370b
nix(test): add test suite for observability tests
...
- Create separate test suite for observability tests
- Create wrapper script `postgrest-test-observability`
- Add to CI and `postgrest-check`
- Move JWT cache tests under observability tests
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-19 10:38:42 -05:00
renovate[bot] and Wolfgang Walther
796339172c
chore(deps): update ubuntu:noble docker digest to 186072b
2026-03-19 09:16:11 +00:00
renovate[bot] and Wolfgang Walther
238e9078bf
chore(deps): update cachix/cachix-action action to v17
2026-03-18 21:19:20 +00:00
renovate[bot] and Wolfgang Walther
1934179c64
chore(deps): update codecov/codecov-action action to v5.5.3
2026-03-18 20:02:06 +00:00
renovate[bot] and Wolfgang Walther
88c365fb52
chore(deps): update actions/cache action to v5.0.4
2026-03-18 19:08:42 +00:00
Taimoor Zaeem and Steve Chavez
0ff8a1a37a
refactor(auth): use wildcard type constructor import
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-18 13:09:27 -05:00
renovate[bot] and Wolfgang Walther
c448712e88
chore(deps): update ubuntu:noble docker digest to 0d39fcc
2026-03-17 10:19:37 +00:00
Taimoor Zaeem and Steve Chavez
d4ba41bd43
nix(shell): bypass proxy variables using NO_PROXY=*
...
Tested using:
```sh
export HTTP_PROXY=http://localhost:7890
nix-shell
postgrest-test-io
```
Closes #4633 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-16 10:53:10 -05:00
Taimoor Zaeem and Steve Chavez
40a1fea916
refactor: move role insertion in claims to PreQuery.hs
...
Also add a comment on `AuthResult` type to explain that
we can also access the claims in the db using GUCs.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-16 10:24:24 -05:00
Andrei Dziahel and Steve Chavez
1f54e2accc
add: add "Vary" header to responses
...
Co-authored-by: Steve Chavez <stevechavezast@gmail.com >
2026-03-16 09:55:20 -05:00
renovate[bot] and Wolfgang Walther
d5df12c9c2
chore(deps): update actions/create-github-app-token action to v3
2026-03-14 18:04:36 +00:00
steve-chavez and Wolfgang Walther
af4c4157f5
nix: remove uneeded slocat
...
slocat was introduced to test pipeline mode (see https://github.com/PostgREST/postgrest/pull/2682 ),
but pipeline mode was not merged https://github.com/PostgREST/postgrest/pull/2707 .
So it's really not needed on the loadtests.
2026-03-13 18:56:31 +00:00
renovate[bot] and Wolfgang Walther
5ff271592c
chore(deps): update ubuntu:noble docker digest to d1e2e92
2026-03-13 14:06:41 +00:00
renovate[bot] and Wolfgang Walther
bb4358c8bb
chore(deps): update cachix/cachix-action digest to 3ba601f
2026-03-13 14:06:12 +00:00
renovate[bot] and Wolfgang Walther
2ab2706c8e
chore(deps): update actions/cache action to v5.0.3
2026-03-13 14:05:23 +00:00
renovate[bot] and Wolfgang Walther
b83fbb76a9
chore(deps): update haskell-actions/setup action to v2.10.3
2026-03-13 14:04:41 +00:00
renovate[bot] and Wolfgang Walther
fb54db143d
chore(deps): update actions/checkout action to v6.0.2
2026-03-13 14:03:45 +00:00
renovate[bot] and Wolfgang Walther
8ee8cdd7f8
chore(deps): update github artifact actions
2026-03-12 21:08:47 +00:00
Michał Kłeczek and Steve Chavez
bee2ea6fa6
test(io): add test_graceful_shutdown_waits_for_in_flight_request
2026-03-12 15:24:46 -05:00
Michał Kłeczek and Steve Chavez
a4aa58b4de
refactor: move socket creation and management to App module
...
Right now listening sockets initialization, management and usage is split between App, AppState and Admin modules: they are created in AppState.init and remembered in AppState but used only in App and Admin.
It has several negative consequences:
- sockets are initialized even if not needed (eg. command line invocations like dump-config or dump-schema)
- it is impossible to start listening on a socket after initial schema cache load because it requires AppState
This change decouples listen socket management from AppState. Sockets are created only when needed (ie. not in command line tools invocation) and passed to admin application and to Warp by the App module.
2026-03-12 10:03:47 -05:00
Michał Kłeczek and Steve Chavez
e741c1bca7
refactor: provide AppState infrastructure to wait for schema cache load
...
This commit replaces ioRef based implementation of schema cache status tracking to MVar based, so that it is possible to wait for schema cache loading.
Waiting for schema cache loading is necessary to implement zero-downtime upgrades with SO_REUSEPORT, where listening on a socket must wait for schema cache loading.
2026-03-12 09:04:56 -05:00
Wolfgang Walther and Andrei Dziahel
d5694672a4
nix(flake): add devShell
...
Adds a devShell to the flake for use with `nix develop`.
Co-authored-by: Andrei Dziahel <develop7@develop7.info >
2026-03-11 19:50:01 +00:00
Wolfgang Walther
ca858f7544
docs: fix prometheus text format link
...
Reported by linkcheck.
2026-03-11 08:48:49 +01:00
renovate[bot] and Wolfgang Walther
cab60b9ee8
chore(deps): update docker/setup-buildx-action action to v4
2026-03-10 18:40:00 +00:00
steve-chavez and Wolfgang Walther
0b7f0197fc
chore: update license
2026-03-10 16:41:42 +00:00
Taimoor Zaeem and Steve Chavez
93db1a5a47
refactor: remove redundant parameters from actionResponse
...
Towards #4608 .
We already have access to these parameters via `ApiRequest` type,
hence no need to pass them separately.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-10 09:55:42 -05:00
renovate[bot] and Wolfgang Walther
f657ac4e0b
chore(deps): update docker/login-action action to v4
2026-03-10 14:15:16 +00:00
Taimoor Zaeem and Steve Chavez
f5b9ed28db
nix(chore): remove defunct config in loadtest.nix
...
`PGRST_JWT_CACHE_MAX_LIFETIME` is defunct since #4084 is merged.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-09 15:46:23 -05:00
renovate[bot] and Wolfgang Walther
0eb2bdd8e1
chore(deps): update korthout/backport-action action to v4.2.0
2026-03-09 13:13:13 +00:00
Taimoor Zaeem and Steve Chavez
58368513ab
chore: add changelog entry for v14.6
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-08 21:01:30 -05:00
Taimoor Zaeem and Steve Chavez
5abacba0d8
fix(error): leaking table and function names when calculating hint
...
Increase similarity score to 0.75 from 0.33 for table and functions
error hint.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-03-06 16:03:21 -05:00
Laurence Isla
2861b35f41
chore: update sponsors
...
* The list of sponsors is now ordered by total contribution value (highest first)
* Removed former backers from sponsor pages
2026-03-03 22:02:18 -05:00
steve-chavez
4e4ae3c7a2
chore: add AI policy in CONTRIBUTING
...
To preserve our scarce review capacity, we reserve the right to reject
seemingly AI generated low-value contributions.
---
Also delete the first paragraph since now it can be interpreted as
low-effort contributions.
2026-03-03 19:56:08 -05:00
steve-chavez
1c6d0816a5
chore: mention tests are required in CONTRIBUTING
...
Also remove the Haskell conventions subtitle since these are general
recommendations.
2026-03-02 17:57:01 -05:00
Laurence Isla
341e40196d
chore: update sponsor
2026-03-02 17:36:04 -05:00