steve-chavez
bd50b1e4d3
ci: pin Nix version to avoid error
...
To 2.13.3
2023-04-12 12:49:39 -05:00
Robert Vollmert and steve-chavez
f26cdd5151
feat: use hasql-pool-0.9, add db-pool-max-lifetime ( fixes #2638 )
...
- db-pool-acquisition-timeout is no longer optional, defaults to 10s
- new option db-pool-max-lifetime limits the maximal lifetime of a
postgresql connection, defaults to 30m
2023-04-12 12:49:36 -05:00
Steve Chavez
b869dd7be9
fix: log to stderr on AcquisitionTimeoutUsageError ( #2667 )
...
* refactor: remove uneeded type on checkIsFatal
* dry with a logPgrstError function
2023-04-12 12:49:04 -05:00
Robert and Laurence Isla
97a4402911
Update nixpkgs, dependencies ( #2612 )
...
* relax upper bounds on HTTP, hspec, lens-aeson, optparse-applicative (fixes #2580 )
* upgrade stackage snapshot to latest LTS, with GHC 9.2.5
* bump nixpkgs to 2023-01-12
* fix complaints due to updated linters
2023-04-12 09:52:08 -05:00
Robert and Laurence Isla
a101d27c9c
bump postgresql-libpq ( #2599 )
...
For https://github.com/PostgREST/postgresql-libpq/pull/2 .
2023-04-12 09:52:08 -05:00
steve-chavez and Laurence Isla
519dbc75f3
refactor: delete QueryCost, instead use PlanSpec
2023-04-12 09:52:08 -05:00
steve-chavez and Laurence Isla
ae3c784921
refactor: add planCost and planHdr for tests
2023-04-12 09:52:08 -05:00
steve-chavez
f56bed2a75
bump version to 10.1.2
v10.1.2
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
af8e436732
Add missing fixes to the changelog
2023-02-02 03:30:15 -05:00
steve-chavez
98a29bee04
fix: NOTIFY pgrst not reoading the catalog cache
2023-02-02 03:30:15 -05:00
Tuan Le and Steve Chavez
557285b659
fix: consider authentication failure as a fatal error
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
81501aefa0
fix: FK pointing to VIEW instead of TABLE in OpenAPI output
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
12c1d4a8e4
Add upsert headers for POST requests to the OpenAPI output
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
8aa7368786
fix: Add required OpenAPI items object when the paramater is an array
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
9d4ff812c9
Add suggestions with fuzzy text search when no relationship is found ( #2583 )
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
171dd313d9
fix: clarify error messages for functions
...
Move explanation on single unnamed parameters to the error details
2023-02-02 03:30:15 -05:00
Laurence Isla and Steve Chavez
fd24a7374b
feat: hint function names/parameters on error
2023-02-02 03:30:15 -05:00
steve-chavez
a525790c4c
fix: bad M2M embed on RPC
2023-02-02 03:30:15 -05:00
steve-chavez
aaa4fbc370
bump version to 10.1.1
v10.1.1
2022-11-08 12:51:16 -05:00
Robert Vollmert and Wolfgang Walther
5e65b2afaf
fix: bump hasql-pool to 0.8.0.6
...
This update ensures that connections aren't lost if they throw
an exception. Compare #2558 .
2022-11-05 15:48:52 +01:00
steve-chavez
3408998629
bump version to 10.1.0.20221104
2022-11-04 18:47:48 -05:00
Laurence Isla and GitHub
b8c5d212ea
fix: Fatal error when requesting limit=0 and db-max-rows is set ( #2560 )
2022-11-04 18:14:16 -05:00
c8e4f38984
feat: Build against libpq 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
Co-authored-by: Wolfgang Walther <walther@technowledgy.de >
2022-11-02 08:25:07 +01:00
Wolfgang Walther and Wolfgang Walther
44dd73adcc
fix: Embedding views with partial FK references broken
...
This is a regression introduced in d2719420f4 .
Fixes #2548
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-31 18:15:06 +01:00
steve-chavez
b2935ef799
bump version to 10.1.0
v10.1.0
2022-10-28 18:09:19 -05:00
steve-chavez
0b1f8358c6
nix: postgrest-release modifies CHANGELOG
2022-10-28 17:52:58 -05:00
Wolfgang Walther and Wolfgang Walther
2c31c64325
fix: Detect all relationships when multiple view columns reference the same table column
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 18:12:58 +02:00
Wolfgang Walther
425ab70ec7
fix: Make UPSERT work with PostgreSQL 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 16:18:42 +02:00
Wolfgang Walther
2cce82bdd5
chore: Upgrade nixpkgs to 2022-10-28
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 14:27:56 +02:00
Robert Vollmert and Wolfgang Walther
800873ed91
try applying same override to openssl_1_1 as openssl
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
b702c5fbe4
pytest_xdist -> pytest-xdist
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
cfd0ee35d3
bump haskell dependency versions
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
31cd0bbff4
bash_5 -> bash
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
78ec8a095a
bump nixpkgs again, hoping this fixes things
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
39959fa330
fix nixpkgs-ugprade to use correct /bin/date
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
fc3a01fabe
further bump, simplify hackage overrides
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
03b810ffa5
allow/use lens 5.2
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
177ec4df85
downgrade postgis
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
dbf645b899
upgrade nix wip
2022-10-28 10:49:04 +02:00
Wolfgang Walther and Wolfgang Walther
e274706088
fix: Ignore leading and trailing spaces in column names, fts languages and casts
...
Fixes #2285
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
da632ac7d3
refactor: pIdentifierChar -> pIdentifier
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
b78b096ae4
fix: Stricter query string parsing - no empty fts lang
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
bbbc308b6f
fix: Stricter query string parsing - no empty casts
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
ecf54bef43
test: Add basic doctests for pFieldName
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
8c0d187044
fix: Stricter query string parsing - no hints or join types in regular fields
...
Fixes #2362
Reference #2475
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
ae8625a7b6
fix: Stricter query string parsing - no jsonpath in embedding
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
7c7a04a27e
test: Add doctests for pFieldForest
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
2289defe4b
refactor: Use stronger typing for SelectItem parser
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
772d3c4e01
chore: Update cachix actions
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:30 +02:00
steve-chavez
45e7aac218
fix: embedding computed with normal relationship
2022-10-27 13:49:53 -05:00