DEV Community

fileminto
fileminto

Posted on

Upgrading PostgreSQL 13 & 14 to 17–19 Without Getting Bitten: Breaking Changes and Cloud Extension Traps

PostgreSQL 13 reached Community End-of-Life (EOL) on November 13, 2025 (13.23), and PostgreSQL 14 followed on November 12, 2026 (14.25). For teams running on AWS RDS, Aurora, Google Cloud SQL, or Azure, staying on an EOL major version means either losing security patches or paying Extended Support surcharges.

Jumping multiple major versions (13/14 -> 17, 18, or 19) in one hop works cleanly with pg_upgrade or logical replication—as long as you catch the breaking changes and managed-cloud extension gaps before cutover day.

1. Breaking changes that actually stall upgrades

When tracking upgrades in PG Radar Versions, four changes trip up multi-version jumps most often:

  • PG 15: public schema ownership & PUBLIC CREATE revoked — New PG 15+ clusters set the public schema owner to pg_database_owner and stop granting CREATE ON SCHEMA public to PUBLIC by default (pg_upgrade preserves existing database ACLs, while fresh logical-replication targets or newly provisioned databases will fail non-owner CREATE TABLE unless granted explicitly).
  • PG 16: Stricter CREATEROLE semantics — Roles with CREATEROLE can no longer modify or grant arbitrary roles without explicit ADMIN OPTION. Provisioning scripts that create per-service roles often fail silently until tested on PG 16+.
  • PG 17: Removed GUCs & pg_stat_checkpointer split — Leaving old_snapshot_threshold in postgresql.conf prevents PG 17 from starting. Meanwhile, checkpoint metrics (checkpoints_timed, checkpoints_req) moved out of pg_stat_bgwriter into pg_stat_checkpointer, breaking older Prometheus postgres_exporter and Zabbix queries.
  • PG 18: Default data checksums on initdb & optimizer stats preservation — PG 18 enables data checksums by default on fresh initdb. Running pg_upgrade from an older non-checksum cluster fails immediately unless you pass --no-data-checksums to the target initdb (or enable checksums offline first). On the upside, PG 18 pg_upgrade preserves optimizer statistics so queries don't fall off a cliff post-cutover. (If jumping all the way to PG 19, also audit pg_hba.conf because RADIUS auth was removed and jit defaults to off.)

2. Cloud support lags—and extension support differs sharply

Don't assume every managed provider supports the same major version or the same CREATE EXTENSION list:

  • Major version availability: Neon and TencentDB support PG 15–19 (including PG 19 GA), while AWS RDS/Aurora, Cloud SQL, Supabase (15, 17, 18), and Azure Flexible Server center production upgrades on PG 17 and PG 18 (with PG 19 rolling out in preview).
  • Extension traps across managed clouds (tracked across 7 environments in PG Radar Extensions):
    • pgvector, pg_trgm, and pg_stat_statements work across AWS RDS, Aurora, Supabase, Neon, Cloud SQL, Azure PG, and self-hosted clusters.
    • pg_search (ParadeDB) is unsupported on those locked-down managed services and requires self-hosted / CloudNativePG (tsvector + GIN + pg_trgm is the portable fallback).
    • pgroonga works on Supabase and self-hosted, whereas AWS RDS, Aurora, and Cloud SQL provide pg_bigm for 2-gram CJK search instead.
    • pg_cron runs natively on RDS, Aurora, Supabase, Cloud SQL, and Azure, but is partial on Neon because background workers pause whenever compute scales to zero.

Compare your source and target versions side-by-side before scheduling downtime at pgradar.org/versions and verify every extension on your target cloud at pgradar.org/extensions.

Top comments (0)