Skip to content

Releases: PostgREST/postgrest

devel

04 May 19:36
Compare
Choose a tag to compare
devel Pre-release
Pre-release

Added

Fixed

  • #3693, Prevent spread embedding to allow aggregates when they are disabled - @laurenceisla
  • #3693, A nested spread embedding now correctly groups by the fields of its top parent relationship - @laurenceisla
  • #3693, Fix spread embedding errors when using the count() aggregate without a field - @laurenceisla
    • Fixed "column reference <col> is ambiguous" error when selecting ?select=...table(col,count())
    • Fixed "column <json_aggregate>.<alias> does not exist" error when selecting ?select=...table(aias:count())
  • #3727, Clarify "listening" logs - @steve-chavez
  • #3795, Clarify Accept: vnd.pgrst.object error message - @steve-chavez
  • #3779, Always log the schema cache load time - @steve-chavez

Changed

  • #2052, Dropped support for PostgreSQL 9.6 - @wolfgangwalther
  • #2052, Dropped support for PostgreSQL 10 - @wolfgangwalther
  • #2052, Dropped support for PostgreSQL 11 - @wolfgangwalther
  • #3508, PostgREST now fails to start when server-port and admin-server-port config options are the same - @develop7
  • #3607, PostgREST now fails to start when the JWT secret is less than 32 characters long - @laurenceisla
  • #3644, Fail schema cache lookup with invalid db-schemas config - @wolfgangwalther
    • Previously, this would silently return 200 - OK on the root endpoint, but don't provide any usable endpoints.
  • #3757, Remove support for Prefer: params=single-object - @joelonsql
    • This preference was deprecated in favor of Functions with an array of JSON objects

v12.2.3

01 Aug 17:43
Compare
Choose a tag to compare

Fixed

v12.2.2

11 Jul 05:12
Compare
Choose a tag to compare

Fixed

v12.2.1

27 Jun 21:40
Compare
Choose a tag to compare

Fixed

Documentation

v12.2.0

11 Jun 16:06
Compare
Choose a tag to compare

Features

Observability

Listener

API

Transactions

Admin

Performance

  • Performance improvement on bulk json inserts, around 10% increase on requests per second by removing json_typeof from write queries by @steve-chavez in #2676.

Documentation

Errors

  • Show extra information in the PGRST121 error (could not parse RAISE 'PGRST') by @laurenceisla in #3404
    • Shows the failed MESSAGE or DETAIL in the details field
    • Shows the correct JSON format in the hints field

Fixes

  • Dump media handlers and timezones with --dump-schema by @wolfgangwalther in #3237
  • Don't hide error on LISTEN channel failure by @steve-chavez in #3323 and #3324
  • Incorrect admin server /ready response on slow schema cache loads by @steve-chavez in #3330
  • Fix in-database configuration values not loading for pgrst.server_trace_header and pgrst.server_cors_allowed_origins by @laurenceisla in #3345
  • Clarify the PGRST121 (could not parse RAISE 'PGRST') error message by @laurenceisla in #3404
  • Fix wrong 503 Service Unavailable on pg error 53400 by @taimoorzaeem in #3267
  • Fix not adding application_name on all connection strings by @steve-chavez in #2985
  • Admin /live and /ready now differentiates a failure as 500 status by @steve-chavez in #3424
    • 503 status is still given when postgREST is in a recovering state
  • Media Types are parsed case insensitively by @develop7 in #3478
  • Fix listener silently failing on read replica by @steve-chavez in #3533 and #3536
    • If the LISTEN connection fails, it's retried with exponential backoff
  • Force listener to connect to read-write instances using target_session_attrs by @steve-chavez in #3414
  • Fix incorrect 413 Request Entity Too Large on pg errors 54* by @taimoorzaeem in #3255
  • Remove verbosity from error logs starting with "An error occurred..." and replacing it with "Failed to..." by @laurenceisla in #3549

Deprecations

v12.0.3

09 May 22:30
6a506d1
Compare
Choose a tag to compare

Fixed

v12.0.2

20 Dec 23:46
Compare
Choose a tag to compare

Fixed

v12.0.1

13 Dec 00:44
Compare
Choose a tag to compare

Fixed

  • #3054, Fix not allowing special characters in JSON keys - @laurenceisla
  • #2344, Replace JSON parser error with a clearer generic message - @develop7
  • #3100, Add missing in-database configuration option for jwt-cache-max-lifetime - @laurenceisla
  • #3089, The any media type handler now sets Content-Type: application/octet-stream by default instead of Content-Type: application/json - @steve-chavez

v12.0.0

02 Dec 01:09
Compare
Choose a tag to compare

Features

API

Authentication

Connection Pool

Errors

Observability

Transactions

Fixes

API

  • Remove unnecessary count on RPC returning single row by @steve-chavez in #3015

  • HTTP status responses for upserts by @taimoorzaeem in #2926

    • PUT returns 201 instead of 200 when rows are inserted
    • POST with Prefer: resolution=merge-duplicates returns 200 instead of 201 when no rows are inserted

Observability

  • Transaction-Scoped Settings are now shown clearly in the Postgres logs by @laurenceisla in #3032

    • Shows set_config('pgrst.setting_name', $1) instead of setconfig($1, $2)
    • Does not apply to role settings and app.settings.*
  • Display an actual TCP port app is bound to by @develop7 in #3034

  • Fix Acquision Timeout errors logging to stderr when log-level=crit by @laurenceisla in #3067

Breaking changes

API

Transactions

New Contributors

Full Changelog: v11.2.2...v12.0.0

v11.2.2

25 Oct 17:35
f884da7
Compare
Choose a tag to compare

Fixed