Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 5 min read Deep dive mediumAdept

New in PostgreSQL 14: What every developer should know

PostgreSQL 14 adds JSON subscripting for jsonb, multirange types such as tsmultirange for storing non-contiguous ranges in one value, and client-side query pipelining in libpq to cut round-trip latency. It also brings parallelism improvements for sequential scans, foreign data wrappers and materialized view refreshes. query_id now appears in pg_stat_activity, EXPLAIN VERBOSE and logs once compute_query_id is enabled. On security, the predefined pg_read_all_data role grants read-only access in one statement, and SCRAM-SHA-256 is now the default password hashing, so older clients may need upgrading.

Related posts

  • What's New in PostgreSQL 14?

    Render mediumAdept

    PostgreSQL 14 adds jsonb subscripting, which lets queries read, filter and update nested JSONB values with JavaScript-like bracket syntax instead of path operators such as #>. It also adds multirange types, which store several non-overlapping ranges, such as an all-day meeting with a lunch break, as a single value rather than multiple rows. Concurrent connection handling is notably faster: pganalyze's pgbench tests showed roughly 20% higher throughput at 5,000 connections and 50% at 10,000 compared with PostgreSQL 13. Render offered PostgreSQL 14 on release day.

  • Top 3 features in Postgres 17

    Neon mediumAdept

    Postgres 17 adds RETURNING support to MERGE (with a merge_action() function that reports whether each row was inserted, updated or deleted), SQL/JSON functions including JSON_TABLE for turning JSON into relational rows, and performance work. On the performance side, vacuum uses a new data structure that cuts memory use by up to 20x and lifts the 1GB cap, and B-tree scans handle IN-lists faster. Neon engineers contributed to EXPLAIN (SERIALIZE), parallel BRIN index builds, direct TLS handshakes, event triggers on client connect, and amcheck validation of B-tree uniqueness.

  • SQL or NoSQL? Why not use both (with PostgreSQL)?

    Supabase mediumAdept

    PostgreSQL's JSONB columns let an app store nested, variable-length data (here, a daily food, water and exercise log) as a single row instead of spreading it across several normalized tables, while keeping SQL available for analysis. A worked example builds a calendar table with JSONB log fields and inserts a whole day in one statement. It then uses jsonb_array_elements with the -> and ->> operators to flatten the arrays into rows. Because aggregates cannot wrap set-returning functions, the flattened query goes into a CTE before summing daily calories or filtering for specific items.

  • PostgREST 9

    Supabase mediumAdept

    PostgREST 9 adds inner-join resource embedding via the `!inner` keyword, so top-level rows can be filtered by conditions on an embedded table (e.g. messages filtered by users.username). Functions can now accept a single unnamed JSON parameter, which lets webhooks such as Postmark bounce notifications POST raw payloads straight to an rpc endpoint. PostgreSQL 14 compatibility forced a breaking change: per-claim and per-header settings are replaced by `request.jwt.claims` and `request.headers` JSON settings, so custom auth functions must be updated. Supabase's built-in auth helpers already handle this.

  • Supabase is now on Postgres 13.3

    Supabase easyNovice

    New Supabase projects now run Postgres 13.3 (up from 12.0), bringing native gen_random_uuid, parallel index vacuuming, incremental sorting and smaller B-tree indexes. Supabase Postgres versioning now tracks upstream major/minor versions, and Postgres is built from source so ARM Graviton 2 instances can use Large System Extensions (LSE) for faster atomics and locking, with pgbench comparisons on m6gd.8xlarge. The release also moves to Ubuntu 20.04, adds the pgRouting and wal2json extensions, configures fail2ban on ports 5432 and 6543 (10-minute ban after three failed attempts), and previews PgBouncer/PostgREST marketplace bundles.

The quest for software engineering knowledge.

Look:
Layout: