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
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
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
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
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
Michał Kłeczek and Steve Chavez
c297d051dc
add: use SO_REUSEPORT on platform supporting it
2026-07-15 11:51:21 -05: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
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