• Sources: primary
  • Thread: PostgreSQL 19 release
  • Summary: CloudNativePG 1.31.0-rc1 revokes CONNECT from PUBLIC on databases it creates, disables automountServiceAccountToken on instance Pods, changes the default smartShutdownTimeout from 180 to 0 seconds, and bootstraps new instances in an init container instead of a separate Job. It adds PostgreSQL 19 support with 19.0-system-trixie as the default image for new clusters, OTLP log export without a DaemonSet, in-place Pod resource resizing on Kubernetes 1.33 or later, failure-domain-aware synchronous replicas, and declarative database and schema privileges. Failover now builds on the primary Lease, including detection and fencing of replicas that diverged from the primary's timeline.
  • Why it matters: Managed roles that are not database owners will need an explicit CONNECT grant on new databases, and tooling that watches bootstrap Jobs must change before upgrading.
  • Background: CloudNativePG is a Kubernetes operator that runs PostgreSQL clusters as Pods with streaming replication and handles failover itself rather than through an external tool like Patroni. Version 1.30.0 introduced a primary Lease, a Kubernetes coordination object that the primary must keep renewing, and 1.31 moves isolation checks and switchover coordination onto it. Smart shutdown waits for every client to disconnect, which with long-lived pooler connections can stall node drains.