Skip to content

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

Neon 12 min read Release mediumAdept

Postgres 19 is out: try it on Neon

Postgres 19 is an operations-focused release that adds REPACK (CONCURRENTLY) for online table rebuilding and clustering via logical decoding, pg_plan_advice/pg_stash_advice for stabilizing bad plans by query ID, parallel autovacuum with priority scoring, WAIT FOR LSN for read-your-writes on replicas, and logical replication sequence sync. REPACK CONCURRENTLY needs a replication slot, temporary disk for a full copy, and fails if more than ~104M tuples change during the run, and it is not MVCC-safe for older snapshots. Other additions include postgres_fdw statistics import, ON CONFLICT DO SELECT, JSON output for COPY TO, and new stats views. SQL/PGQ, FOR PORTION OF, partition merge/split and GROUP BY ALL were reverted before GA.

Assumes: PostgreSQL administrationMVCC and vacuumlogical replication basicsquery plans and EXPLAIN

Related posts

  • PostgreSQL 19 on ClickHouse Managed Postgres, from day one

    ClickHouse mediumAdept

    PostgreSQL 19 has been generally available on ClickHouse Managed Postgres since its November 2026 release day. That was possible because the service runs unforked community Postgres from the PGDG repository, builds VM images from release candidates with Ubicloud, gates the version behind a feature flag, and stress-tests HA failovers in staging. The post then covers the PostgreSQL 19 features that matter most for operators: REPACK CONCURRENTLY and its caveats (not MVCC-safe, a final ACCESS EXCLUSIVE lock, disk space needs), WAIT FOR LSN for read-your-writes on replicas, sequence replication and publication EXCEPT, parallel autovacuum index workers with scoring, and pg_plan_advice. A pgbench run with one synchronous standby showed about 2% higher TPS than PostgreSQL 18, and several defaults changed, including jit off, lz4 TOAST compression and max_locks_per_transaction at 128.

  • 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.

  • Postgres 18 Is Out: Try it on Neon

    Neon mediumAdept

    Postgres 18 is available in preview on Neon's Free plan, and production upgrades should wait until it leaves preview. New features covered with SQL examples include B-tree skip scan on multicolumn indexes, EXPLAIN ANALYZE showing buffers by default, virtual generated columns as the default, native uuidv7(), OLD/NEW values in RETURNING, temporal WITHOUT OVERLAPS and PERIOD constraints, OAuth authentication, NOT NULL constraints marked NOT VALID, new autovacuum thresholds and parallel GIN index builds. The new asynchronous read I/O (io_method worker, io_uring or sync) is explained, but Neon still runs io_method='sync' with unoptimized prefetch and sequential scan paths, so PG 18 should not be benchmarked on Neon yet.

  • Making large Postgres migrations practical: 1TB in 2 hours with PeerDB

    ClickHouse mediumAdept

    PeerDB migrated a 1TB, 3.6-billion-row Postgres table in about 1 hour 50 minutes with 8 threads, compared with 8 hours 40 minutes for native logical replication and 17 hours for pg_dump/pg_restore. The speedup comes from parallel snapshotting. A consistent snapshot is exported via pg_export_snapshot, the table is split into CTID ranges, and each range is streamed with binary COPY, with per-partition retries and progress visibility. Past a certain level of parallelism the source RDS network bandwidth becomes the limit, so 16 threads were no faster than 8 at 1TB. For CDC, PeerDB keeps the replication slot consumed independently of destination writes. It also reconstructs unchanged TOAST columns from batch caches and MERGE against the target, so REPLICA IDENTITY FULL is not needed.

  • New system views in PostgreSQL 19

    ClickHouse mediumAdept

    PostgreSQL 19 (in beta) adds four system views, and three of them get hands-on demos. pg_stat_lock gives cumulative per-locktype wait counts, wait time and fastpath_exceeded counters, though waits only count once they pass deadlock_timeout. pg_stat_recovery returns standby replay state as one atomic, consistent snapshot. pg_stat_autovacuum_scores shows the new score-based autovacuum prioritization, tunable through five weight parameters. Worked SQL examples cover lock contention, fast-path spill on a 140-partition table (alongside the new max_locks_per_transaction default of 128) and how autovacuum scores are computed from thresholds.

The quest for software engineering knowledge.

Look:
Layout: