When a new major database release arrives, you face a tough choice: wait too long and miss patches, or upgrade early by hand and hit quiet config breaks. PostgreSQL 19 shipped on November 19, 2026 (supported until November 2031), while version 14 reached EOL on November 12. Three recent releases tackle the biggest upgrade risks: Patroni cluster upgrades, AI-assisted CVE audits, and peak-hour partition locks.
HighAvailabilityData 1.1: production Patroni upgrades to PostgreSQL 19
If you run high-availability PostgreSQL without Kubernetes, Patroni usually manages replication and leader election via etcd. HighAvailabilityData is a free on-premise web console that manages Patroni, etcd, HAProxy, keepalived, PgBouncer, and pgBackRest over SSH with no agents. Nodes stay standard clusters and still work with patronictl.
Version 1.1 adds PostgreSQL 19 (new clusters deploy on 15–19, dropping EOL 14). Upgrades run in-place via pg_upgrade --link (minutes of downtime, replicas rebuild automatically) or blue/green using logical replication (seconds of downtime and easy rollback, though you need spare servers).
The console automatically guards against version 19 traps from the PostgreSQL 19 upgrade guide. The new default for max_locks_per_transaction doubled from 64 to 128, but Patroni still passes 64, leaving clusters with half the lock table unless fixed. The console sets 128 on new clusters, doubles custom values on upgrade, strips removed settings (io_workers, escape_string_warning, standard_conforming_strings), and blocks upgrades if pg_hba.conf uses remote RADIUS auth.
Another trap is async I/O with io_uring (io_method = io_uring). During manual pg_upgrade over SSH, instances start outside Patroni's systemd unit with ulimit -n = 1024 and fail under high max_connections with could not setup io_uring queue: Too many open files. Version 1.1 inherits Patroni's limit (set ulimit -n 65536 manually if needed). It also adds HTTPS on port 8443 with a redirect from 8080 and shared-key auth between HA consoles.
The console is proprietary, though free with no node limit. You still need to check extension compatibility, pgBackRest (2.59+ required), btree_gist indexes on inet/cidr, and reindexing full-text indexes for non-libc locales ahead of time.
pg-cve-mcp 2.0.1: curated PostgreSQL CVE data and N-1 advice for AI agents
Asking a chatbot about PostgreSQL security flaws is risky: web search and NVD feeds trigger false alarms, miss recalled releases, and tell you to jump straight from 14 to 19.0. The open-source MCP server pg-cve-mcp 2.0.1 (Apache-2.0, Python 3.10+, on PyPI) connects a curated database to Claude Desktop, Cursor, and opencode.
The PG_CVE 1.1.3 dataset (November 30, 2026) tracks 122 CVEs and 14 exploits including CVE-2026-19385 (web view at PostgreSQL CVE Dashboard). Five JSON tools (get_cves, compare_versions, get_upgrade_path, get_exploits, get_summary) sort results by CVSS. EOL branches like 14 get CVE-EOL-WARNING (CVSS 10.0), and get_upgrade_path in 2.0.1 recommends the N-1 branch (like 18.7) instead of brand-new 19.0.
# Install locally from PyPI (or run directly: npx -y pg-cve-mcp)
pip install pg-cve-mcp
pg-cve-mcp
# Self-hosted Streamable HTTP (/mcp, port 8000) with DNS-rebinding protection
PG_CVE_MCP_ALLOWED_HOSTS="mcp.example.com:443" python run_server.py
For local use in Cursor (.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json), one server entry is enough:
{
"mcpServers": {
"pg-cve-mcp": {
"command": "pg-cve-mcp"
}
}
}
Ask 'Where should I upgrade from 14.10?', and the agent calls get_upgrade_path to return a verified path and CVE list. Since the dataset is curated by hand, check last_updated via get_summary, and always set PG_CVE_MCP_ALLOWED_HOSTS in HTTP mode because any Host (*) is allowed by default.
pg_kpart 2.0: blocking partition creation at peak hours and PG 19 support
The pg_kpart extension by HexaCluster and Gilles Darold protects partitioned tables from missing WHERE clauses on the partition key, rejecting full scans with error FS001. Version 2.0 adds PostgreSQL 19 support and closes two gaps.
First, running CREATE TABLE ... PARTITION OF or ALTER TABLE ... ATTACH PARTITION during peak hours takes heavy locks on the parent table and stalls traffic. The new pg_kpart.deny_partition_creation setting blocks partition creation during configured windows (error FS002). It checks the server's log_timezone, so SET TimeZone can't bypass it. The block applies to everyone, including superusers and pg_partman.
Second, any user used to be able to run SET pg_kpart.enabled = off per session. The new pg_kpart.nouser_change = on flag stops non-superusers from changing extension settings.
# In postgresql.conf: preload required, CREATE EXTENSION not needed
shared_preload_libraries = 'pg_kpart'
pg_kpart.message_level = 'warning'
pg_kpart.nouser_change = on
pg_kpart.deny_partition_creation = '08:00-12:00, 14:00-18:00'
Once preloaded, you can update windows without a restart via ALTER SYSTEM and SELECT pg_reload_conf(). Start in warning mode to spot unwanted queries in logs first; windows support overnight spans (22:00-06:00) and won't block DETACH PARTITION or pg_upgrade.
Version 2.0 has two limits. Full-scan checks run in planner_hook, so cached generic plans only re-check when replanned. Also, an emergency pg_restore during a blocked window hits FS002 even as superuser, so you'll need to clear the window first.


