PostgreSQL’s annual release cadence has delivered an unusually impactful pair of updates across 2025 and 2026. Released on September 25, 2025, PostgreSQL 18 tackled one of the database engine’s oldest architectural bottlenecks by introducing a native asynchronous I/O subsystem. Fourteen months later, on November 19, 2026, PostgreSQL 19 followed up with online table repacking via REPACK (CONCURRENTLY), query plan stabilization with pg_plan_advice, and smoother logical replication operations.
For application developers, database reliability engineers, and teams deciding between database engines—as explored in our PostgreSQL vs SQLite vs MySQL guide—these two releases upgrade both raw storage throughput and day-two production operations.
Two Major Releases in 14 Months: PostgreSQL 18 and PostgreSQL 19
Rather than chasing headline-grabbing syntax gimmicks, recent PostgreSQL development focused on removing long-standing operational papercuts: synchronous storage stalls, full-table locks during bloat cleanup, cold optimizer statistics after major upgrades, and unpredictable multi-column index scans.
| Release | Release Date | Headline Capabilities |
|---|---|---|
| PostgreSQL 18 | September 25, 2025 | Asynchronous I/O subsystem, B-tree skip scans, uuidv7(), virtual generated columns, pg_upgrade stats retention, OAuth |
| PostgreSQL 19 | November 19, 2026 | REPACK (CONCURRENTLY), pg_plan_advice, automatic AIO worker scaling, standby read-your-writes consistency, sequence replication |
PostgreSQL 18 Native Asynchronous I/O Subsystem and B-Tree Skip Scans
According to the official PostgreSQL 18 release announcement, the headline architectural addition is a new asynchronous I/O (AIO) subsystem that demonstrated up to 3x performance improvements on storage reads in release testing. Previously, PostgreSQL leaned heavily on operating system read-ahead heuristics while issuing blocking read calls per backend.
How Asynchronous I/O Improves Sequential Scans, Bitmap Scans, and Vacuums
As detailed in the PostgreSQL 18 Release Notes, the new AIO framework allows sequential scans, bitmap heap scans, and VACUUM operations to dispatch multiple concurrent I/O requests instead of waiting synchronously for each block one by one. Cloud-attached block storage and high-queue-depth NVMe devices benefit significantly because latency from one read overlaps with issuing subsequent reads. PostgreSQL 19 builds directly on this foundation with automatic scaling of I/O worker processes so concurrency adapts dynamically to workload demand.
In production terms, accelerating VACUUM and bitmap heap scans matters just as much as speeding up cold sequential analytics queries. When large append-heavy tables accumulate dead tuples, synchronous I/O stalls during autovacuum can cause bloat and transaction wraparound pressure. Letting the storage layer pipeline block reads narrows the window where background maintenance falls behind heavy OLTP write traffic.

Multicolumn B-Tree Skip Scans Explained
Every backend developer has hit the classic composite index trap: an index exists on (tenant_id, created_at), but a query filters only on created_at without specifying tenant_id. Historically, PostgreSQL could rarely use that B-tree efficiently unless a separate index existed. PostgreSQL 18 adds B-tree skip scans, enabling the planner to step across distinct leading-column values when selectivity makes skipping faster than a sequential table scan—reducing the need for redundant single-column indexes that slow down writes.
PostgreSQL 19 REPACK (CONCURRENTLY) and pg_plan_advice Stability
On November 19, 2026, the PostgreSQL 19 release announcement introduced capabilities that operations teams requested for years. Foremost among them is native REPACK (CONCURRENTLY), which lets administrators reclaim disk bloat and physically reorder tables without holding the heavyweight exclusive locks required by traditional VACUUM FULL or CLUSTER.
PostgreSQL 19 also introduces pg_plan_advice, giving database engineers an explicit, inspectable mechanism to guide execution plans when complex multi-join queries suffer from sudden plan flips. Combined with get-or-create operations and standby read-your-writes consistency—plus PostgreSQL 19 Release Notes additions like enabling logical replication without a server restart at wal_level=replica and logical replication of sequences—PostgreSQL 19 dramatically reduces downtime during routine schema and topology maintenance.
Those replication enhancements solve real migration headaches. Previously, turning on logical replication from a default cluster often meant scheduling a primary restart to raise wal_level to logical, and teams migrating via logical slots had to synchronize primary-key sequences manually during cutover. Supporting dynamic enablement at wal_level=replica alongside native sequence replication streamlines blue-green upgrades and read-replica fanout.
Developer Quality-of-Life Upgrades: uuidv7(), Virtual Columns, and Standby Consistency
Beyond storage internals, application developers gain cleaner primitives directly in SQL. PostgreSQL 18 added built-in uuidv7() generation, producing time-ordered 128-bit UUIDs that preserve B-tree index locality far better than random UUIDv4 keys—without needing application-side libraries or custom C extensions. Generated columns also became virtual by default in PostgreSQL 18, avoiding unnecessary disk storage when derived expressions are cheap to compute at read time.
Here is how a modern schema takes advantage of uuidv7(), virtual generated columns, and composite indexing designed with B-tree skip scans in mind:
sql-- PostgreSQL 18+ table using time-ordered uuidv7() and virtual generated column
CREATE TABLE audit_events (
event_id uuid PRIMARY KEY DEFAULT uuidv7(),
tenant_status text NOT NULL,
payload jsonb NOT NULL,
event_type text GENERATED ALWAYS AS (payload ->> 'type') VIRTUAL,
created_at timestamptz NOT NULL DEFAULT now()
);
-- Composite B-tree supports both tenant-scoped and skip-scan queries
CREATE INDEX idx_audit_status_created
ON audit_events (tenant_status, created_at DESC);
-- Queries omitting low-cardinality tenant_status can leverage skip scan
SELECT event_id, event_type, created_at
FROM audit_events
WHERE created_at >= now() - interval '1 hour';
Security and read-scaling workflows improved as well. PostgreSQL 18 introduced native OAuth authentication support for centralized identity integration, while PostgreSQL 19 added standby read-your-writes consistency so web applications routing reads to replicas can guarantee a user sees their own freshly committed mutations—pairable with fast backend startup practices covered in our application startup optimization guide.
Upgrade Checklist: Retaining Optimizer Statistics with pg_upgrade
Historically, running pg_upgrade left the newly upgraded cluster without planner statistics, forcing DBAs to scramble through VACUUM ANALYZE passes before application traffic returned to avoid catastrophic nested-loop or sequential-scan plan regressions. Starting in PostgreSQL 18, pg_upgrade can retain optimizer statistics across major versions, preserving table and column distributions right out of the upgrade window.
Retaining optimizer statistics during pg_upgrade eliminates one of the riskiest cold-cache surprises after major PostgreSQL version upgrades.
When planning an upgrade to PostgreSQL 18 or 19, combine statistics preservation with PostgreSQL 19’s online maintenance tooling:
sql-- Verify planner statistics exist immediately after pg_upgrade
SELECT schemaname, relname, last_analyze, n_live_tup
FROM pg_stat_user_tables
ORDER BY n_live_tup DESC
LIMIT 10;
-- PostgreSQL 19: reclaim table bloat online without blocking reads/writes
REPACK (CONCURRENTLY) audit_events;
- Test AIO settings on staging storage: Benchmark sequential and bitmap scan concurrency against your actual NVMe or cloud block volume limits.
- Audit redundant indexes: Check whether B-tree skip scans allow dropping secondary indexes that only differed by omitting a low-cardinality leading column.
- Verify logical replication readiness: In PostgreSQL 19, review sequence replication and dynamic logical replication enablement before planning zero-downtime migrations.
Taken together, PostgreSQL 18 and 19 reinforce why PostgreSQL remains the default relational workhorse: faster storage reads, fewer maintenance locks, smoother upgrades, and richer native SQL primitives.
Featured image attribution: Modern dark-lit technology hardware by Thomas Kvistholt (CC0), via Wikimedia Commons.