Skip to content

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

Neon 6 min read Opinion easyNovice

Why Does Everyone Run Ancient Postgres Versions?

Many teams stay on old Postgres major versions because older releases already meet most needs and major upgrades are costly: they can break backward compatibility and usually require logical replication, incremental table migration, testing and a planned cutover. Knock (11 to 15) and Retool (9 to 13, 4 TB) both followed that pattern, including separate publications with copy_data = false for large append-only tables and feature-flagged traffic switching. Reasons to upgrade anyway include the five-year support lifecycle, the growing difficulty of skipping many versions, performance gains such as roughly halved tail latency since version 8, and ecosystem compatibility. The pgversions.com tool lists the security fixes, bug fixes and features a given version is missing.

Related posts

  • Introducing Neon Labs

    Neon mediumAdept

    Neon Labs launches with two experimental tools for major Postgres version upgrades on Neon, where pg_upgrade isn't supported and an upgrade means migrating into a new project. The Upgrade Assessment runs read-only pg_catalog queries and flags blockers such as unsupported extensions, PG15 public-schema permission changes, PG17 search_path restrictions, PG18 virtual generated columns, and tables lacking replica identity. The Migration Assistant picks Import (<10 GB), pg_dump/pg_restore (10–200 GB) or logical replication for larger databases. For replication it handles schema copy, lag and slot-activity monitoring, sequence resets to avoid post-cutover duplicate keys, and running ANALYZE on the target before traffic arrives, since pg_statistic isn't carried over.

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

  • Heroku Postgres Upgrade Guide: Simplify Your Move to Version 17

    Heroku Engineering mediumAdept

    Postgres 17 is now available on Heroku Postgres, along with five new `heroku pg:upgrade:*` CLI subcommands (prepare, run, cancel, dryrun, wait) that expose Heroku's internal upgrade automation for self-service major-version upgrades. Essential-tier databases upgrade with a single `pg:upgrade:run`. Standard-tier and higher databases can do an optional dry run on a follower, then schedule the upgrade for the next maintenance window or trigger it manually. The upgrade runs in place via an internal replica, takes about 5-10 minutes of downtime, upgrades followers automatically and keeps `DATABASE_URL` unchanged. The legacy `pg:upgrade` command is being deprecated, though the follower-based flow remains available for teams that want easier rollback.

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

  • How we migrate TBs from Heroku without logical replication

    PlanetScale mediumAdept

    PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification. Version 2.0 fixes failures seen on large migrations. Bucardo's single-transaction initial copy restarted from zero after any interruption, so the migrator now drops secondary indexes before the copy and rebuilds them in parallel afterwards, raising throughput from about 60 to nearly 300 GB/h. It also disables transaction_timeout on Bucardo's connections, sets TCP keepalives so silently dropped long-lived connections fail within about a minute, and tunes host TCP buffers. A discovery CLI and the Liftoff assessment flag tables without primary keys, incompatible extensions and sizing before the migration starts.

The quest for software engineering knowledge.

Look:
Layout: