steve-chavez
98ca7c15d5
drop: Admin server config endpoint
...
BREAKING CHANGE
The endpoint was at risk of being left unprotected when exposing it.
The accompanying `admin-server-config-enabled` config was also dropped.
2025-05-04 13:53:50 -05:00
Laurence Isla and Steve Chavez
57ef9988a5
feat: add Content-Length response header
2025-04-24 12:49:18 -05:00
Taimoor Zaeem and GitHub
61a3c7b9e8
docs: add note that ordering of columns is not enforced ( #3999 )
2025-04-09 16:40:52 -05:00
Taimoor Zaeem and GitHub
f7f87b42ca
feat: add Proxy-Status header for better error response
2025-04-05 13:43:39 -05:00
steve-chavez
d89e7a2173
docs: redirect from broken #bulk-insert-default
2025-04-02 13:05:12 -05:00
Taimoor Zaeem and Steve Chavez
c7da7fab3a
docs: mention that updates also supports specifying columns and missing pref
2025-04-02 12:59:18 -05:00
Taimoor Zaeem and Steve Chavez
ddd7d98652
docs: explain missing preference header
2025-04-02 12:59:18 -05:00
Taimoor Zaeem and Steve Chavez
f91f47ff57
docs: mention log-level setting in the logs section
2025-03-26 11:25:57 -05:00
Laurence Isla and GitHub
0b618d0bef
feat: allow spreading one-to-many and many-to-many embedded resources
...
* Note: Aggregates are not implemented
2025-03-24 14:45:56 +00:00
Taimoor Zaeem and GitHub
fdc26d52fc
fix: empty error messages for disabled openapi and /invalid/nested/paths
2025-03-21 11:51:40 -05:00
Taimoor Zaeem and Steve Chavez
a1c0a8ce6d
docs: add missing max-affected violation error
2025-03-21 08:40:52 -05:00
Taimoor Zaeem and Steve Chavez
36b6a2c86b
fix: improve jwt errors
2025-03-13 00:20:54 +01:00
Taimoor Zaeem and GitHub
390ba19932
fix: handle queries on non-existing table gracefully
2025-02-21 13:49:54 -05:00
Laurence Isla and GitHub
9c880c082a
feat: allow logging the SQL query to stderr
...
- Logs the main SQL query when `log-query=main-query`.
- Only logs at the current `log-level`.
2025-02-18 19:17:26 -05:00
Laurence Isla
7be5782179
docs: make the aggregate functions docs less verbose
2025-02-14 18:14:43 -05:00
steve-chavez
33b69b5894
docs: reduce verbosity of aggregate functions
2025-02-12 20:12:38 -05:00
Taimoor Zaeem and GitHub
560c511f81
docs: add missing jwt claims and clock skew ( #3908 )
2025-02-12 15:38:20 -05:00
Steve Chavez and GitHub
307692c325
break: remove limited updated/delete feature ( #3907 )
...
BREAKING CHANGE
As agreed on https://github.com/PostgREST/postgrest/issues/3013#issuecomment-1770186262 ,
this removes the limited update/delete feature.
The feature was complicated, largely unused and caused other bugs in
mutations.
It was added in #2195 and #2211 .
2025-02-12 14:48:08 -05:00
Laurence Isla
b7d0a1f68c
feat: apply to_tsvector() explicitly to the full-text search filtered column, only if it's not of tsvector type
2025-01-28 19:14:54 -05:00
M. Taimoor Zaeem and Steve Chavez
a9d74eba2a
feat: allow not_null value for the is operator
2024-12-19 10:19:41 -05:00
kjcsb1 and GitHub
3e1a904785
docs: Add example of comment on view
2024-12-12 20:54:12 +01:00
M. Taimoor Zaeem and Steve Chavez
af6b79d4d7
feat: support string comparison for jwt-role-claim-key
2024-12-12 08:47:06 -05:00
Christophe Eymard and GitHub
c5a9455959
docs: Add an example for PGRST_APP_SETTINGS_* ( #3804 )
2024-12-01 14:41:39 -05:00
Steve Chavez and GitHub
6db245aacd
fix: clarify PGRST116 error message ( #3795 )
...
Currently it's redundant and not easy to read.
```
{"message":"JSON object requested, multiple (or no) rows returned",
"details":"The result contains 2 rows"}
```
Now:
```
{"message":"Cannot coerce the result to a single JSON object",
"details":"The result contains an array of 0 objects"}
``
Also correct docs which had a wrong error code.
2024-11-20 12:15:46 -05:00
Laurence Isla
fcf828fd92
docs: clarify usage of upsert with surrogate primary keys
2024-11-15 12:05:14 -05:00
Joel Jakobsson and GitHub
180a96ce48
remove support for Prefer: params=single-object ( #3757 )
...
BREAKING CHANGE
Using this preference was deprecated in 6c3d7a9 , in favor of Functions with an array of JSON objects.
2024-11-04 20:19:08 -05:00
steve-chavez
bee862c2fa
docs: inline one-to-one relationship SQL
...
More direct than having to jump to the sample film database definition.
2024-10-21 14:45:53 -05:00
Dan Kurin and Steve Chavez
5ca969f4b8
docs: add PGRST123 to error table
2024-10-17 19:21:07 -05:00
steve-chavez
28ebe37e07
docs: example for server-host
2024-10-07 17:14:43 -05:00
steve-chavez
7e99babec7
feat: log pool maximum size
...
It's important for observability to have an historic trace of the pool
size. Currently we expose it on the metrics endpoint, but not all
deployments use it.
This logs the pool size after the successful connection log to make it
more visible:
<timestamp>: Connection Pool initialized with a maximum size of 4 connections
2024-10-02 22:47:22 -05:00
steve-chavez
87dddd66d2
fix: clarify "listening" logs
...
It's not immediately clear on which port the API server is listening.
Also it's not clear that the "pgrst" channel is for database
notifications.
Goes from:
<timestamp>: Admin server listening on 0.0.0.0:3001
<timestamp>: Listening on 0.0.0.0:3000
<timestamp>: Listening for notifications on the "pgrst" channel
To:
<timestamp>: Admin server listening on 0.0.0.0:3001
<timestamp>: API server listening on 0.0.0.0:3000
<timestamp>: Listening for database notifications on the "pgrst" channel
2024-10-02 22:47:22 -05:00
Jason Close and steve-chavez
f21053dbee
docs: rpc example for array of json objects
...
This change adds an explanation of how to handle an array of JSON objects within an RPC call. To pass multiple objects, an array of JSON objects must be the JSON value, with the key being the json or jsonb variable name of the Postgres function.
For people who want to perform multiple tasks/inserts/updates within a single API call, this is a needed explanation for that use-case.
2024-08-23 13:01:43 -05:00
steve-chavez
cccf8b750d
docs: rename to hoisted function settings
2024-08-01 19:17:56 -05:00
Andrei Dziahel and GitHub
06cbc4be36
config forbid same server-port and admin-server-port ( #3559 )
...
* fix: forbid same server-port and admin-server-port
Forbids server-port and admin-server-port from being equal altogether,
despite they might not conflict at all in case admin and app are bound
to different addresses. Implemented as per the discussion at
https://github.com/PostgREST/postgrest/issues/3508#issuecomment-2125123633
2024-07-03 13:02:02 -05:00
Laurence Isla
b9004baa3f
docs: add missing "curl --get" on embedding example
2024-07-02 15:20:54 -05:00
Sandro Bauer and GitHub
2fd5a00269
docs: fix rendering for inline code block in operator list
2024-07-02 12:27:58 +02:00
steve-chavez
ecf9d56c91
docs: add listener recovery
2024-06-25 20:03:22 -05:00
Andrei Dziahel and GitHub
9d7e87b3e0
feat: add the "admin-server-host" config to set the host for the admin server
2024-06-24 14:47:19 -05:00
Wolfgang Walther
fd6cd037ec
docs: Fix linkcheck
...
Some URLs are still forbidden for our linkcheck tool, so disabling them
again.
Others are permanently redirected, so adjusting them.
2024-06-19 08:40:15 +02:00
Laurence Isla and Steve Chavez
15a97738fb
docs: fix example of listener failure on read replicas
2024-06-12 19:43:58 -05:00
Laurence Isla
b52937ef4a
docs: clarify what is logged when "log-level=debug"
2024-06-12 18:19:16 -05:00
Laurence Isla
3f9027904a
docs: add missing logs to stderr
...
- Schema cache stats are now logged to stderr
- Log when the LISTEN channel gets a notification
2024-06-12 18:19:16 -05:00
Laurence Isla and Steve Chavez
5afa321e89
docs: add "Listener" page
...
Co-authored-by: Steve Chavez <stevechavezast@gmail.com >
2024-06-12 18:19:16 -05:00
Laurence Isla
db85faf3ed
docs: wrap in double quotes the filters with reserved characters in logical operators
2024-06-05 17:59:44 -05:00
Laurence Isla
aaf2d2e430
docs: add example for double embedding when doing OR filtering across embeds
2024-06-04 16:51:28 -05:00
Laurence Isla
50b2d302d0
docs: use "curl --get" for better readability when necessary
2024-05-31 20:24:06 -05:00
steve-chavez
a51a74b3c1
docs: shorten CLI
2024-05-24 18:05:45 -05:00
steve-chavez
30ca64d849
docs: improve observability
2024-05-24 18:05:45 -05:00
Laurence Isla
f5767b8d86
docs: add "config" and "schema_cache" endpoints to the admin server
2024-05-22 19:16:01 -05:00
Taimoor Zaeem and Steve Chavez
8cbcf9867b
feat: add config db-hoisted-tx-settings to allow only hoisted function settings
2024-05-21 19:50:03 -05:00