PostgreSQL autovacuum worker crashes with SIGSEGV on partitioned table after upgrade to 15.2
Environment
Primary: PostgreSQL 15.2 (Debian 12 package), 256 GB RAM, shared_buffers=32GB, table 'events' partitioned by range (date), largest partition ~400GB, autovacuum enabled cluster-wide with autovacuum_vacuum_scale_factor=0.02, maintenance_work_mem=1GB. Crash observed within 24 hours of upgrade from 14→15 on Ubuntu/Debian test and production hosts.
Symptoms
Autovacuum worker processes abruptly exit with SIGSEGV. Autovacuum logs show 'LOG: automatic vacuum of table
Observations
postgres logs include 'server process (PID) was terminated by signal 11: Segmentation fault' and a backtrace pointing into 'vacuumlazy.c' and 'heapam.c'; core dump captured. Crashes occur during parallel autovacuum of a large partition; manual VACUUM VERBOSE on the same partition completes without segfault when run interactively. No hardware errors reported; system logs show no OOM or kernel panics. Reproducible on a smaller test cluster when autovacuum_parallel_workers increased and maintenance_work_mem set to higher value.
Already attempted
Set autovacuum to disabled on the largest partition (via ALTER TABLE ... SET (autovacuum_enabled = false)) — crashes stop but autovacuum backlog grows. Enabled more verbose logging (log_min_messages=debug2) and captured backtraces. Rebuilt indexes on affected partition and ran REINDEX. Reproduced in a staging VM using identical table structure and similar workload; core backtrace identical. Rolled back to PostgreSQL 14 binary in staging and autovacuum runs normally. Did not apply any custom extensions beyond pg_stat_statements (enabled).
Question
What is the likely root cause of autovacuum SIGSEGV after the upgrade, and what safe remediation paths let me restore autovacuum without data loss? Should I disable autovacuum on partitions selectively, backport a patch, or change configuration to avoid the crash?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Databases35% match
Autovacuum worker SIGSEGV after PostgreSQL 13→14 upgrade when extension is loaded via shared_preload_libraries
Open0 answers - Databases34% match
PostgreSQL VACUUM stalls on partitioned table during heavy insert bursts; autovacuum appears idle
Open0 answers - Databases31% match
PostgreSQL 14: Rapid table bloat after nightly batch UPDATEs despite autovacuum enabled
Open0 answers - Databases28% match
PostgreSQL logical replication slot grows and WAL accumulates after logical decoding plugin crashes on high-write primary
Open1 answer - Databases27% match
PostgreSQL replica falls behind and reports WAL streaming delay when frequent autovacuum runs on primary
Open0 answers