v8.0.0
You can download this release at the PostgREST v8.0.0 release page.
Added
Allow HTTP status override through the response.status GUC.
– @steve-chavezAllow Embedding Chains of Views recursively to any depth.
– @wolfgangwaltherNo downtime when reloading the schema cache. See Schema Cache Reloading.
– @steve-chavezAllow schema cache reloading using PostgreSQL NOTIFY command. This enables Automatic Schema Cache Reloading.
– @steve-chavezAllow sending the header
Prefer: headers-only
to get a response with aLocation
header. See Insertions.
– @laurenceislaAllow Using External Connection Poolers such as PgBouncer in transaction pooling mode.
– @laurenceislaAllow Configuration Reloading by sending a SIGUSR2 signal.
– @steve-chavezAllow
Bearer
with and without capitalization as authentication schema. See Client Auth.
– @wolfgangwaltherIn-Database Configuration that can be reloaded with NOTIFY.
– @steve-chavezAllow OPTIONS to generate HTTP methods based on views triggers. See OPTIONS requests.
– @laurenceislaShow timestamps for server diagnostic information. See Logging.
– @steve-chavezConfig options for showing a full OpenAPI output regardless of the JWT role privileges and for disabling it altogether. See openapi-mode.
– @steve-chavezConfig option for logging level. See log-level.
– @steve-chavezConfig option for enabling or disabling prepared statements. See db-prepared-statements.
– @steve-chavezConfig option for specifying how to terminate the transactions (allowing rollbacks, useful for testing). See db-tx-end.
– @wolfgangwaltherDocumentation improvements
Added the Schema Cache page.
Moved the Schema Cache Reloading reference from Hardening PostgREST to Schema Cache
Changed
Docker images are now optimized to be built from the scratch image. This reduces the compressed image size from over 30 MB to about 4 MB. For more details, see Docker image built with Nix.
– @monacoremoThe Docker image no longer has an internal
/etc/postgrest.conf
file, you must use Environment Variables to configure it.
– @wolfgangwaltherThe
pg_listen
utility is no longer needed to automatically reload the schema cache and it’s replaced entirely by database notifications. See Automatic Schema Cache Reloading.
– @steve-chavezPOST requests for insertions no longer include a
Location
header in the response by default and behave the same way as having aPrefer: return=minimal
header in the request. This prevents permissions errors when having a write-only table. See Insertions.
– @laurenceislaModified the default logging level from
info
toerror
. See log-level.
– @steve-chavezChanged the error message for a not found RPC on a stale schema (see Stale Function Signature) and for the unsupported case of overloaded functions with the same argument names but different types.
– @laurenceislaChanged the error message for the no relationship found error. See Stale Foreign Key Relationships.
– @laurenceisla
Fixed
Fix showing UNKNOWN on
postgrest --help
invocation.
– @monacoremoRemoved single column restriction to allow composite foreign keys in join tables.
– @goteguruFix expired JWTs starting an empty transaction on the db.
– @steve-chavezFix location header for POST request with
select=
without PK.
– @wolfgangwaltherFix error messages on connection failure for localized PostgreSQL on Windows.
– @wolfgangwaltherFix
application/octet-stream
appendingcharset=utf-8
.
– @steve-chavezFix overloading of functions with unnamed arguments.
– @wolfgangwaltherReturn
405 Method not Allowed
for GET of volatile RPC instead of 500.
– @wolfgangwaltherFix RPC return type handling and embedding for domains with composite base type.
– @wolfgangwaltherFix embedding through views that have COALESCE with subselect.
– @wolfgangwaltherFix parsing of boolean config values for Docker environment variables, now it accepts double quoted truth values
("true", "false")
and numbers("1", "0")
.
– @wolfgangwaltherFix using
app.settings.xxx
config options in Docker, now they can be used asPGRST_APP_SETTINGS_xxx
.
– @wolfgangwaltherFix panic when attempting to run with unix socket on non-unix host and properly close unix domain socket on exit.
– @monacoremoDisregard internal junction (in non-exposed schema) when embedding.
– @steve-chavezFix requests for overloaded functions from HTML forms to no longer hang.
– @laurenceisla
Thanks
Big thanks from the PostgREST team to our sponsors!
Evans Fernandes
Tsingson Qin
Michel Pelletier
Jay Hannah
Robert Stolarz
Nicholas DiBiase
Christopher Reid
Nathan Bouscal
Daniel Rafaj
David Fenko
Remo Rechkemmer
Severin Ibarluzea
Tom Saleeba
Pawel Tyll
If you like to join them please consider supporting PostgREST development.