SupabaseSteve ChavezAnnouncement
PostgREST 9
Summary
PostgREST 9 introduces several core updates to the tool that turns PostgreSQL databases into RESTful APIs. Developers can now perform inner joins when embedding tables using the !inner keyword, allowing top-level table rows to be filtered directly by embedded table attributes across multiple operators. The release also adds support for POST requests to functions containing a single unnamed parameter, which simplifies handling raw JSON payloads sent by external webhooks. To ensure compatibility with PostgreSQL 14, custom authentication functions accessing HTTP context headers and JWT claims must be updated to parse JSON properties from consolidated settings. Additional enhancements included in this version provide support for partitioned tables alongside documentation improvements and bug fixes.
Context
PostgREST converts PostgreSQL databases automatically into RESTful APIs, but prior versions lacked native support for inner joins on embedded tables and required named parameters for PostgreSQL functions invoked via RPC.
Approach / What changed
PostgREST 9 introduces the !inner keyword for embedding tables to filter top-level rows by embedded table filters, enables POST requests to PostgreSQL functions with a single unnamed parameter, and updates HTTP context settings for PostgreSQL 14 compatibility.
Takeaways
The !inner keyword allows filtering top-level table queries based on conditions applied to embedded tables across all Supabase client libraries.
PostgREST 9 supports POST requests to PostgreSQL functions with a single unnamed parameter, enabling direct ingestion of raw JSON webhook payloads.
PostgreSQL 14 compatibility requires custom authentication functions to read request.jwt.claims and request.headers as JSON objects rather than individual claim or header settings.
Source and freshness
- Source
- supabase.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.