Wolfgang Walther
77d6055683
chore: bump version to 17
2026-08-07 09:33:46 +02:00
Wolfgang Walther
05d1e0f83d
chore: bump version to 16.0
2026-08-07 09:33:45 +02:00
Wolfgang Walther
6fdc230637
nix: remove outdated code / comment in release script
2026-08-07 09:33:29 +02:00
Wolfgang Walther
a841dc9c39
chore: ignore stackoverflow in linkcheck
...
Seems like stackoverflow started blocking GHA runners as well.
2026-08-07 09:14:33 +02:00
steve-chavez
18371ec372
chore(changelog): clarified JSON Path feature
2026-08-06 18:36:16 -05:00
steve-chavez
6951e1301d
docs: keep working when scache reload fails
...
Docs for 54430c3a2c
2026-08-06 17:54:23 -05:00
steve-chavez
75891975f5
docs: fix wrong ref in admin
2026-08-06 17:24:56 -05:00
steve-chavez
142b54158e
docs: graceful shutdown docs
...
Considered the explanations and use cases on:
- https://github.com/yesodweb/wai/issues/853
- https://github.com/PostgREST/postgrest/pull/4580
2026-08-06 17:24:53 -05:00
steve-chavez
876dfad9d9
chore(changelog): move fixed entry to added
...
Graceful shutdown is really a feature
2026-08-06 17:19:45 -05:00
steve-chavez
2ad6d239a0
docs: add new http server page
2026-08-06 17:19:45 -05:00
Taimoor Zaeem
426e15bbb4
chore(cabal): update haskell language edition to GHC2021
...
This includes a good set of default language extensions that are
often used by us. It frees us of explicitly importing common extensions.
Ref: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/control.html#extension-GHC2021
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-08-05 12:38:29 +05:00
steve-chavez
7e8212870d
docs: release cycle
2026-08-04 19:49:48 -05:00
renovate[bot] and Wolfgang Walther
6a9c99d54e
chore(deps): update haskell-actions/setup action to v2.12.0
2026-08-04 21:05:25 +00:00
steve-chavez
e44178445d
docs: timezone offsets
2026-08-04 13:41:40 -05:00
steve-chavez
59a644bb99
test: prefer timezone offsets
2026-08-04 13:41:40 -05:00
steve-chavez
932c4f6328
perf: no caching for prefer timezone
...
`Prefer: timezone` no longer requires the schema cache.
Previously this required caching `pg_timezone_names` which was slow in some systems.
Closes https://github.com/PostgREST/postgrest/issues/5100 and
https://github.com/PostgREST/postgrest/issues/4751 .
2026-08-04 13:41:40 -05:00
steve-chavez
a41396c425
Revert "add: config db-timezone-enabled for optional querying of timezones"
...
This reverts commit d6c338d588 .
2026-08-04 13:41:40 -05:00
steve-chavez
ca4a6d9e99
Revert "add: configs as json GUC for db-root-spec"
...
This reverts commit f34ca15e84 .
2026-08-04 00:50:18 -05:00
steve-chavez
f34ca15e84
add: configs as json GUC for db-root-spec
...
These are needed for a complete OpenAPI spec
2026-08-03 23:41:03 -05:00
Wolfgang Walther
f84c44dafa
nix: add postgrest-with-oriole-18
2026-08-02 14:51:50 +00:00
Wolfgang Walther
549ab36c30
docs: add NixOS integration section
...
Just a very basic example of how to use the NixOS module that Nixpkgs
provides.
2026-08-02 14:51:50 +00:00
Wolfgang Walther
42754cb6c9
chore(deps): update nixpkgs pin
...
Nixpkgs has removed support for x86_64-darwin, so removing that from
CI's flake check.
A x86_64-darwin binary is still built via Stack.
2026-08-02 14:51:50 +00:00
Wolfgang Walther
57e8d20811
nix: show stderr output for postgrest-style
...
Hiding this will also hide errors when they happen...
In my case, my nix-shell's TMPDIR was too long, so black was failing
silently because it couldn't create a unix socket for its forkserver.
2026-08-02 14:51:50 +00:00
Taimoor Zaeem and Wolfgang Walther
8ede8fb0dc
test(io): move settings related tests to test_settings.py
...
Towards #4946 .
Moves app and pg settings related tests from test_io.py to
test_settings.py.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-08-02 11:53:32 +00:00
Joel Jacobson and Wolfgang Walther
131df9b578
perf: use pg_basetype on PG 17+ for schema cache
2026-08-02 11:47:26 +00:00
Taimoor Zaeem
6a7ad33524
fix: db-channel-enabled not reloadable on config reload
...
Fixes #4894 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-31 21:39:27 +05:00
Taimoor Zaeem
b174295bf2
refactor(chore): rename conf to oldConf in readInDbConfig function
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-31 21:39:27 +05:00
renovate[bot] and Wolfgang Walther
6304265cd9
chore(deps): update docker/login-action action to v4.6.0
2026-07-30 20:41:39 +00:00
Taimoor Zaeem
cb9b00d374
docs: update link of listener in architecture page
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-30 11:23:56 +05:00
Taimoor Zaeem
59081195f0
chore: add changelog entry for v14.16
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-28 23:31:31 +05:00
Taimoor Zaeem
022f0faa38
add: make config log-level reloadable
...
Closes #5113 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-28 11:33:33 +05:00
Taimoor Zaeem
f6d34fd4fc
refactor: move reloading related logic to Reload.hs
...
This commit moves, schema cache reload, config reload and listener
reload logic to `Reload.hs` module.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-25 14:39:48 +05:00
Taimoor Zaeem
e32e2b07b5
refactor: move connection pool functions to Pool.hs
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-25 14:39:48 +05:00
Taimoor Zaeem
a108d66968
refactor: move AppState type and update functions to AppState/Types.hs
...
`AppState.hs` is imported by many modules. Some of those modules contain
important functions that need to be imported back to `AppState.hs`, causing
circular dependency problem.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-25 14:39:48 +05:00
renovate[bot] and Wolfgang Walther
e820cc7370
chore(deps): update docker/login-action action to v4.5.1
2026-07-24 19:26:16 +00:00
renovate[bot] and Wolfgang Walther
74c8a3580d
chore(deps): update vmactions/freebsd-vm action to v1.5.2
2026-07-24 18:51:13 +00:00
steve-chavez
03c67f3410
test: move psql_as_superuser as util and reuse it
2026-07-24 13:44:58 -05:00
renovate[bot] and Wolfgang Walther
1d195bf865
chore(deps): update docker/login-action action to v4.5.0
2026-07-23 20:11:53 +00:00
renovate[bot] and Wolfgang Walther
473734f717
chore(deps): update actions/checkout action to v7.0.1
2026-07-23 20:11:28 +00:00
Taimoor Zaeem
178b1d3e38
fix: kill postgrest main thread on admin server crash
...
Fixes #5096 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-21 20:53:40 +05:00
Taimoor Zaeem
080abcb695
chore: increase columns length in .stylish-haskell.yaml
...
This gives the import statements more space, essentially, it collectively
removes 90+ unneeded lines in the imports statements.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-19 20:56:12 +05:00
Taimoor Zaeem and Wolfgang Walther
8faf9c0519
test: resolve pytest warning when running io tests
...
When running `postgrest-test-io`, pytest raises a `InsecureKeyLengthWarning`
for a test. To clear that warning, this commit increases the key length to
more than 32 characters.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-17 17:42:51 +00:00
Taimoor Zaeem
f81dd29cd1
chore: build haskell source modules in parallel
...
`postgrest-build` now builds twice as fast as compared to previous
build time. This can be tested by running `rm -rf dist-newstyle/` and
then run `postgrest-build`.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-16 13:34:59 +05:00
Michał Kłeczek and Steve Chavez
c297d051dc
add: use SO_REUSEPORT on platform supporting it
2026-07-15 11:51:21 -05:00
Wolfgang Walther
de19b04fe4
amend( aa7d442d): fix docs link to new Main.hs location
2026-07-15 08:55:19 +02:00
Taimoor Zaeem
51e9fd6efd
fix: schema cache dump missing RPC transaction isolation level
...
Fixes #5079 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-14 23:13:21 +05:00
Taimoor Zaeem
63a2267f53
chore: add changelog entry for v14.15
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2026-07-14 21:04:15 +05:00
Wolfgang Walther
aa7d442d32
chore: move executable code to src/
...
src/ now contains all source code - in subdirectories, according to the
.cabal component they belong to. This will allow us to put vendored
libraries in the same place - and later split our own code into multiple
components/libraries as well.
2026-07-14 06:58:15 +00:00
Wolfgang Walther
44e15e4e9b
chore: run doctests in parallel
...
Runs the doctests much faster, which is potentially useful in
combination with postgrest-watch for local development.
This implies that doctests run on compiled code, not in a GHCi session,
which has some implications:
- Only exported functions can be tested.
- Imports need to be made explicit in doctests themselves.
On the flipside, this would allow us to potentially include doctest
results in code coverage, I believe.
This change is a requirement to vendor hasql, which otherwise breaks the
existing doctests: hasql contains a .hsc file, which *needs* to be
compiled - not interpreted - to make the tests work.
2026-07-14 06:55:32 +00:00
Wolfgang Walther
aa6c19ebda
test: remove useless doctest in Network.hs
...
This essentially just tests upstream's show instance.
2026-07-14 06:55:32 +00:00