steve-chavez and Wolfgang Walther
e4984dc751
fix: wrong subquery error returning as 400 status
2024-05-09 18:56:47 +02:00
steve-chavez and Wolfgang Walther
1b0f29a8cc
fix: misleading "Starting.." logs on scache reload
2024-05-09 18:56:47 +02:00
steve-chavez and Laurence Isla
cd62e39cd1
fix: empty row on handler function
...
Closes https://github.com/PostgREST/postgrest/issues/3126
2023-12-20 16:33:34 -05:00
steve-chavez and Laurence Isla
ec0f99c686
fix: aggregates not working for all schemas
...
Closes https://github.com/PostgREST/postgrest/issues/3124
2023-12-20 16:33:31 -05:00
steve-chavez
a7d2c8e6ad
docs: soap how-to is outdated
...
`*/*` can now be handled with media type handlers
2023-12-19 00:00:56 -05:00
steve-chavez
fdfc095b0e
fix: correct any media type handler
2023-12-12 22:46:56 -05:00
steve-chavez and Laurence Isla
229a4e4cd6
fix: any handler sets a default application/json
...
Now it sets application/octet-stream as the generic type.
2023-12-12 18:46:40 -05:00
steve-chavez
9f252678a4
fix: add missing pgrst.server_timing_enabled
2023-12-12 10:57:47 -05:00
steve-chavez
802131aa96
fix: any media type should be bytea
2023-12-05 17:49:46 -05:00
steve-chavez
275bdee47c
fix server-timing header section
...
Also link it to jwt caching
2023-12-02 01:36:26 -05:00
steve-chavez
f70e852a0a
bump to 12.0.0
2023-12-01 19:41:04 -05:00
steve-chavez
00580bc8cb
bump version to 12.0.0
2023-12-01 19:18:07 -05:00
steve-chavez
70c0d88fa7
bring back schema isolation on its own page
2023-12-01 19:03:23 -05:00
steve-chavez
2b4e0cc10a
move return representation to preferences page
2023-12-01 18:32:38 -05:00
steve-chavez
1268b0a258
split pagination/count into own page
2023-12-01 16:24:52 -05:00
steve-chavez
11f40c384a
use the clearer START TRANSACTION
2023-12-01 16:24:52 -05:00
steve-chavez
a38eee399e
chore: improve mt handlers snippets
2023-12-01 10:59:48 -05:00
steve-chavez
ee4321623f
chore: improve intro of media type handlers
2023-12-01 10:51:46 -05:00
steve-chavez
49903ca6db
chore: wording of media type handlers
2023-12-01 10:08:12 -05:00
steve-chavez
d15e357d2e
reference: media type handlers
2023-11-30 23:27:06 -05:00
steve-chavez
9fe11249f9
feat: custom SQL handler for the "*/*" media type
2023-11-28 23:14:38 -05:00
steve-chavez
b080f59bac
test: server timing on root and options method
2023-11-28 10:25:25 -05:00
steve-chavez
558e9d40e8
changelog: join server-timing entries
2023-11-28 10:25:25 -05:00
steve-chavez
958339b8d3
chore: change server timing render to response
...
"render" is a loaded term than might be thought as the generation
of a full HTML page. While for this phase we only process the status
and the headers.
Changing it to "response" so is not misleading at least. Users can check the
docs for clarification.
2023-11-28 10:25:25 -05:00
steve-chavez
3d56f8435d
chore: delete dead error codes
2023-11-28 10:25:25 -05:00
steve-chavez
e620ae5e9c
pin sphinx-tabs ver
2023-11-28 07:46:13 -05:00
steve-chavez
bd6d8624ab
fix: sphinx breaking change
...
see https://github.com/sphinx-doc/sphinx/issues/10474
2023-11-28 07:46:13 -05:00
steve-chavez
03e384d55b
remove release notes
2023-11-28 07:46:13 -05:00
steve-chavez
475b4601ca
split role settings from function settings
...
Also add doc for GRANT SET ON PARAMETER, see
https://github.com/PostgREST/postgrest/pull/3058 .
2023-11-21 17:49:35 -05:00
steve-chavez
f7bf2157f3
feat: apply super settings on impersonated roles
...
If they have GRANT SET ON PARAMETER <setting> TO authenticator
2023-11-21 10:54:56 -05:00
steve-chavez
ed90774f53
test: query the empty string
2023-11-03 12:58:54 -05:00
b85ee953b7
doc: media type handlers ( #689 )
...
* reference: media type handlers
* Use function instead of computed field in editable task
---------
Co-authored-by: Laurence Isla <lau.isla.c@gmail.com >
2023-10-28 12:00:37 -05:00
steve-chavez
82b38341bf
feat: sql handlers for custom media types
...
* test text/html and drop HtmlRawOutputSpec.hs
* all tests passing, removed all pendingWith
* make functions compatible with pg <= 12
* move custom media types tests to own spec
* anyelement aggregate
* apply aggregates without a final function
* overriding works
* overriding anyelement with particular agg
* cannot override vendored media types
* plan spec works with custom aggregate
* renamed media types to make clear which ones are overridable
* correct content negotiation with same weight
* text/tab-separated-values media type
* text/csv with BOM plus content-disposition header
2023-10-26 09:04:02 -05:00
steve-chavez
4a90e9fbd9
break: db-root-spec default app/openapi+json media
...
BREAKING CHANGE
Can be done later with custom media types
2023-10-26 09:04:02 -05:00
steve-chavez
14d030b96c
break: remove binary field logic, raw-media-types
...
BREAKING CHANGE
Can be done later with custom media types
2023-10-26 09:04:02 -05:00
steve-chavez
eb238ad678
test: DRY scache/config sleep in io tests
...
Also increase schema cache sleep to 0.2 as 0.1 tends to fail in CI.
2023-10-20 17:53:54 -05:00
steve-chavez
54786a6c04
fix: unnecessary count() on RPC returning single
2023-10-19 15:54:22 -05:00
steve-chavez
00f3cb3746
test: prove RPC returning single always gives 1
2023-10-19 15:54:22 -05:00
Steve Chavez and GitHub
93f2b0093c
references: remark NOLOGIN impersonated roles
2023-10-07 19:20:48 -03:00
steve-chavez
a9d6c318fd
nix: instructions for static binary
2023-10-06 19:54:05 -03:00
steve-chavez
2aa58164ab
refactor: move errors to ApiRequestError
2023-10-06 01:16:45 -03:00
steve-chavez
df08d7f3ff
refactor: rename JSONParseError to PGRSTParseError
...
The error name is too generic otherwise.
2023-10-06 01:16:45 -03:00
steve-chavez
3dd292be46
refactor: DRY application/json on Error.hs
...
Small refactor to help with:
https://github.com/PostgREST/postgrest/issues/2901
2023-10-06 01:16:45 -03:00
steve-chavez
d9857e1c54
releases: add v11.2.1
2023-10-04 12:25:09 -03:00
steve-chavez
0703f27d2b
changelog: update to 11.2.1
2023-10-04 12:12:30 -03:00
steve-chavez
3b1eb51744
ci: fix MacOS CI
2023-09-29 19:50:15 -03:00
steve-chavez
cf7ee67dfe
fix: arrow filter on RPC returning TABLE+composite
2023-09-28 20:26:38 -03:00
steve-chavez
290d90609b
fix: unnecessary set default_transaction_isolation
2023-09-27 17:48:48 -03:00
steve-chavez
2825ac059e
refactor: make Response module pure
2023-09-27 11:50:22 -03:00
steve-chavez
10231bc1a8
reorganize errors page
2023-09-23 20:29:01 -03:00
steve-chavez
8d3c9f8435
refactor: move media type logic to Plan module
2023-09-12 19:24:26 -03:00
steve-chavez
d8a91453d1
fix: inconsistent Preference-Applied
...
* Don't apply `tx=commit` if the transaction doesn't commit
* Apply `count=exact`
* Also simplifies the Preference-Applied logic, removing the need for
some functions.
2023-09-12 13:52:49 -03:00
steve-chavez
a6f1eefe55
fix linkcheck
2023-09-04 19:23:07 -03:00
steve-chavez
3dead2ac8b
clarify access mode
2023-09-04 19:23:07 -03:00
steve-chavez
5a1ed11924
note on current_setting inconsistency
...
Closes #362 .
2023-09-04 19:23:07 -03:00
steve-chavez
531a183b44
nix: postgrest-coverage notice
2023-08-17 13:43:48 -05:00
steve-chavez
739f056b0a
nix: add postgrest-repl command
2023-08-17 13:43:48 -05:00
Steve Chavez
32b77cae6c
Revert "nix: Update nixpkgs to 2023-08-04"
...
This reverts commit 2434724edd .
2023-08-15 23:55:35 -05:00
steve-chavez
c820efb64a
bump version to 11.2.0
2023-08-10 08:51:58 -05:00
steve-chavez
cacbbc31fe
add setof record functions
2023-08-10 08:49:55 -05:00
steve-chavez
78d9880607
add nulls=stripped
2023-08-10 08:49:55 -05:00
steve-chavez
b33bfb656d
add preference-applied for return=*
2023-08-10 08:49:55 -05:00
steve-chavez
daad21e9ec
add note to impersonated role settings
2023-08-10 08:49:55 -05:00
steve-chavez
c229bee681
add disamb error
2023-08-10 08:49:55 -05:00
steve-chavez
9ed7ff8846
clarify FK joins
2023-08-10 08:49:55 -05:00
steve-chavez
637165ba5b
use the foreign key join term
2023-08-10 08:49:55 -05:00
steve-chavez
095d43ff75
add dynamic schemas example
...
Closes #644
2023-08-10 08:49:55 -05:00
steve-chavez
49d4b9b7db
fix dict
2023-08-10 08:49:55 -05:00
steve-chavez
afee9b73a4
add return=minimal and organize other returns
...
Closes #624
2023-08-10 08:49:55 -05:00
steve-chavez
459f3f8173
add apache apisix tutorial
2023-08-10 08:49:55 -05:00
steve-chavez
b0aaf7afe8
mention header names are lowercased
...
Closes #627
2023-08-10 08:49:55 -05:00
steve-chavez
54bfefdb55
move heroku outside Installation
2023-08-10 08:49:55 -05:00
steve-chavez
a6f93f55b1
clear supported pg versions
...
closes #592
2023-08-10 08:49:55 -05:00
steve-chavez
291b6f3587
add different ways to specify the connection string
...
Closes #576
2023-08-10 08:49:55 -05:00
steve-chavez
43a8745e62
link connection string from connection pool
...
Closes #647
2023-08-10 08:49:55 -05:00
steve-chavez
e82dc41a6a
add link to github discussions
...
closes #401
2023-08-10 08:49:55 -05:00
steve-chavez
1b036dfab9
release page for v11.2.0
...
Closes #644
2023-08-10 08:49:55 -05:00
steve-chavez
e30bf53afa
deprecate: target embedding disambiguation
2023-08-10 08:14:23 -05:00
steve-chavez
5ce020d5bc
fix: impersonated role applying superuser settings
2023-08-09 20:05:22 -05:00
steve-chavez
0fce7ca361
refactor: Response rm Paths_postgrest dependency
...
This allows using doctests on the Response.hs module
2023-08-02 16:28:48 -05:00
steve-chavez
fefd0e2e83
dry config and make it responsive
...
* shorten connection pool
* move securing execution plan
* shorten config intro page
2023-07-31 19:22:26 -05:00
steve-chavez
2d00d7d248
fix: null filtering on embed when column=relation
2023-07-27 22:43:13 -05:00
steve-chavez
220683cef0
add HEAD optimization
2023-07-20 18:09:47 -05:00
steve-chavez
4c4a1de832
to_jsonb index no longer required on json/jsonb
2023-07-20 18:09:47 -05:00
steve-chavez
28d5278d62
fix: use index on jsonb/jsonb arrow filter/order
2023-07-12 14:51:21 -05:00
Steve Chavez and GitHub
c74b9c4efa
add version querying ( #657 )
2023-07-10 17:04:23 -05:00
steve-chavez
e332f038ef
fix: HEAD unnecessarily executing aggregates
2023-07-10 15:05:51 -05:00
steve-chavez
905fcb05cc
refactor: add ResultAggregate type
2023-07-10 15:05:51 -05:00
steve-chavez
add10bd10c
test: doctest for addNullEmbedFilters
2023-07-06 16:52:46 -05:00
steve-chavez
52d3026133
refactor: remove unneeded FilterNullEmbed
2023-07-06 16:52:46 -05:00
steve-chavez
20b06efabe
chore: show on ReadPlan and MediaType
2023-07-05 17:35:54 -05:00
ab8ccf43a6
add domain representations ( #655 )
...
* add domain representations
* Update docs/references/api/domain_representations.rst
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
* Update docs/references/api/domain_representations.rst
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
* Update docs/references/api/domain_representations.rst
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
* Update docs/references/api/domain_representations.rst
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
* Update docs/references/api/domain_representations.rst
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
* Update docs/references/api/domain_representations.rst
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
* add custom domain subheading and TOC
this way it can be seen at the beggining there are advantages over views
and computed fields.
* important note for scache reloading
* clarify advantages
* why not create a type?
---------
Co-authored-by: Alexander Ljungberg <aljungberg@wireload.net >
2023-07-02 14:51:47 -05:00
steve-chavez
a17dd41d6b
fix: Prefer: missing=default with DOMAIN defaults
2023-06-30 17:46:16 -05:00
steve-chavez
1a9e105227
add headings to computed fields
2023-06-28 12:12:27 -05:00
Steve Chavez
3a41d55be6
Fix inserting with defaults
2023-06-27 15:37:22 -05:00
steve-chavez
d59f841d15
add request body handling
2023-06-26 17:51:21 -05:00
steve-chavez
06a3898107
nix: add HISTFILE
2023-06-26 17:51:21 -05:00
steve-chavez
078c6ec08c
refactor: remove SqlFragment and use SQL.Snippet
2023-06-22 21:46:16 -05:00
Steve Chavez and GitHub
991b151b69
improve connection pool wording
2023-06-22 14:44:26 -05:00
Steve Chavez and GitHub
14de9f1dfd
references: add computed fields page ( #650 )
2023-06-22 09:14:23 -05:00