steve-chavez
1f13e43abe
bump version to 11.1.0
v11.1.0
2023-06-07 19:03:31 -05:00
steve-chavez
fac797c766
changelog: clarify 2781
2023-06-07 18:28:01 -05:00
steve-chavez
07cb0b582e
feat: recover on pg_terminate_backend
2023-06-06 14:41:37 -05:00
steve-chavez
d54a2f48de
refactor: move checkIsFatal to AppState
2023-06-06 14:41:37 -05:00
steve-chavez
bcce7b1c53
fix: stop retrying on "no password supplied"
2023-06-06 14:41:37 -05:00
steve-chavez
8d1961ce07
refactor: cache the isolation level
2023-06-06 14:41:37 -05:00
steve-chavez
9a19dff83e
refactor: move debounceLogAcquisitionTimeout
...
Move it to AppState
2023-06-06 14:41:37 -05:00
steve-chavez
54b9a0b8b3
test: fix hello function for pg 9.6
2023-06-02 17:45:25 -05:00
steve-chavez
9a3d453bf4
test: remove big_schema.sql from io tests
...
It was unused(test skipped) and made the scache reload slower, causing
test failure on CI.
2023-06-02 17:45:25 -05:00
steve-chavez
4f6c466031
nix: postgrest-run uses similar config to tests
...
Otherwise manual tests can be deceiving
2023-06-02 17:45:25 -05:00
Steve Chavez and GitHub
a852b766eb
Fix dropping schema cache reload notifications
...
* test: bad schema reload
* refactor: DRY using the "extra" lib
* refactor: move worker funtions inside AppState
* Also rename Workers.hs to Admin.hs
2023-06-02 12:22:17 -05:00
steve-chavez
14be3fb671
feat: add pre-config function
...
Allows using the in-database configuration without SUPERUSER
2023-05-28 10:21:13 -05:00
steve-chavez
8a3686d86b
refactor: whitelist in-db config settings
2023-05-28 10:21:13 -05:00
steve-chavez
009250006e
feat: add db-pool-timeout alias
...
For db-pool-max-idletime
2023-05-22 18:34:18 -03:00
steve-chavez
38ad8c04e1
nix: withTmpDb set search_path to test
...
It gets repetitive to set the search_path every time you go in the test
db with psql.
2023-05-22 13:46:24 -03:00
dependabot[bot] and GitHub
54cbf147e3
build(deps): bump codecov/codecov-action from 3.1.3 to 3.1.4 ( #2794 )
2023-05-22 11:34:18 -05:00
Robert and GitHub
f9f0f79fa9
feat: use hasql-pool-0.10, add db-pool-max-idletime ( #2786 )
...
- new option db-pool-max-idletime limits the maximal idle time of a
postgresql connection, defaults to 30 seconds
- this essentially restores the db-pool-timeout option from versions
<=10, with more specific name
2023-05-16 23:00:40 +02:00
steve-chavez
a867d79c42
nix: withTmpDb psql notice can't mutate the db
...
Use the postgres role instead of the authenticator on the notice
2023-05-05 20:03:09 -03:00
steve-chavez
4197d2f739
bump version to 11.0.1
v11.0.1
2023-04-27 21:30:40 -05:00
steve-chavez
c10ba8e214
fix: skew of 30 seconds for JWT validation
2023-04-27 21:06:06 -05:00
steve-chavez
887948d259
fix: missing=default error msg on generated column
2023-04-27 19:27:09 -05:00
steve-chavez
c63786733a
fix: no schema privilege for schema cache
...
This was due to the usage of pg_get_serial_sequence
2023-04-27 19:27:09 -05:00
steve-chavez
4fe696dd96
nix: PGRST_DB_ANON_ROLE default for postgrest-run
...
Makes manually testing a feature easier
2023-04-27 19:27:09 -05:00
steve-chavez
67936b343f
test: prove that authenticator is not a superuser
2023-04-27 19:27:09 -05:00
steve-chavez
b0e395f495
nix: no SUPERUSER for connection role
...
Change :USER to :PGUSER in SQL scripts
2023-04-27 19:27:09 -05:00
dependabot[bot] and GitHub
3b55a27ef3
build(deps): bump codecov/codecov-action from 3.1.2 to 3.1.3 ( #2765 )
2023-04-24 11:21:49 -05:00
dependabot[bot] and GitHub
43da81c30c
build(deps): bump codecov/codecov-action from 3.1.1 to 3.1.2 ( #2757 )
2023-04-18 12:25:50 -05:00
steve-chavez
dd2f5511d8
bump version to 11.0.0
v11.0.0
2023-04-16 14:22:38 -05:00
steve-chavez
49c349c846
chore: CHANGELOG to include release 10.2.0
2023-04-16 12:18:10 -05:00
steve-chavez
aaf77902f6
feat: isolation level for roles/functions
2023-04-15 18:05:04 -05:00
steve-chavez
4c555cbd5d
refactor: authRole to ByteString
2023-04-15 18:05:04 -05:00
steve-chavez
3e53796120
correct missing=default with GENERATED BY column
2023-04-14 22:12:34 -05:00
Laurence Isla and GitHub
0a2b7064c7
fix: PATCH requests not recognizing embedded filters
...
- Already fixed in #2618
- Adds tests and CHANGELOG
2023-04-14 16:42:55 -05:00
steve-chavez
ce378e6b3a
refactor: clarify Scalar type
...
It now contains the type of the scalar. This way we can discriminate the
void type in a more obvious way.
2023-04-13 18:17:43 -05:00
steve-chavez
feadf59bb3
refactor: rename Proc module to Routine
...
Assuming that functions=procedures is wrong since pg11, which introduced
real stored procedures.
2023-04-13 18:17:43 -05:00
Laurence Isla and GitHub
ad7d80a430
ci: clean files from arm server only on build failure/cancel for a version release
2023-04-13 16:29:26 -05:00
steve-chavez
e572d1d1a2
feat: configurable role settings
2023-04-10 14:27:08 -05:00
steve-chavez
c06237cc56
fix: db settings and pg version query not prepared
2023-04-10 14:27:08 -05:00
steve-chavez
c656a870f4
bump version to 10.2.0.20230407
2023-04-07 14:02:14 -05:00
steve-chavez
1b625cb77a
feat: any/all modifiers for operators
...
Only for the eq,like,ilike,gt,gte,lt,lte,match,imatch operators
2023-04-07 13:10:57 -05:00
Robert Vollmert
394bd22148
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-06 22:40:22 +02:00
Robert Vollmert
963416ae29
test: stabilize log probe in test_pool_acquisition_timeout
...
There's two lines of log output, and their order is not deterministic.
2023-04-06 22:40:22 +02:00
Laurence Isla and GitHub
d3b10e7b2a
feat: Allow filtering by IS DISTINCT FROM using the isdistinct operator
2023-04-06 13:02:03 -05:00
Steve Chavez and GitHub
acf62320ef
RPC returning table alias now works for pg 11/12 ( #2737 )
...
The new LATERAL query used for calling the function, introduced on
https://github.com/PostgREST/postgrest/pull/2677 , failed on functions
that returned a domain like `CREATE DOMAIN projects_domain AS projects`.
Work around that by changing the query conditionally, by
obtaining a bool that represents the composite alias on the SchemaCache
and only do this on pg 11 and 12.
2023-04-05 15:34:41 -05:00
steve-chavez
16f2849724
refactor: wrap proc logic in asJsonF
...
* add explicit logic for returning setof scalars
2023-04-04 19:55:10 -05:00
steve-chavez
d945e8c06a
refactor: remove Maybe from RetType for Proc type
2023-04-04 19:55:10 -05:00
steve-chavez
bc1fb67df0
drop: Prefer: params=multiple-objects on RPC
...
BREAKING CHANGE
A function with a JSON array or object parameter should be used instead
2023-04-04 19:55:10 -05:00
Wolfgang Walther
1442e02f5f
chore: Allow seed-cachix job to keep running when part of the matrix fail
2023-04-04 18:52:52 +02:00
Wolfgang Walther and Wolfgang Walther
68d2d834ba
nix: Update nixpkgs to 2023-03-25
2023-04-04 18:51:34 +02:00
Steve Chavez and GitHub
eb777cf823
Update BACKERS.md
2023-04-03 11:09:19 -05:00