FULL AI ANALYSIS

PostgreSQL autovacuum worker crashes with SIGSEGV on partitioned table after upgrade to 15.2

Generated Oct 17, 2026, 9:26:12 AM

Analysis summary

SIGSEGV in autovacuum during lazy vacuum indicates a bug triggered by specific code paths in the newer PostgreSQL engine: possibly regression in VACUUM related to parallel/autovacuum logic, interactions with partitioned tables, or an extension mismatch. The fact that manual VACUUM runs fine and the issue reproduces across machines points towards a PostgreSQL code regression rather than hardware corruption. Differences between autovacuum worker configuration (parallel workers, maintenance memory) and manual runs (single-process with different resource limits) suggest the crash surfaces only under autovacuum concurrency or memory usage.

Possible causes

Regression in PostgreSQL 15.2 autovacuum/parallel vacuum code path when handling large partitioned tables causing heap access out-of-bounds (software bug in vacuumlazy.c)

80%

Incompatible binary/extension built against older server version (extension ABI mismatch) leading to unexpected behavior in autovacuum worker processes

35%

Memory corruption from third-party extension or background process (unlikely since only autovacuum triggers it and backtrace points into core VACUUM code)

20%

Underlying storage driver or filesystem returning inconsistent reads under concurrent access (rare given manual VACUUM success and absence of I/O errors)

10%

Suggested fixes

1

Diagnostic step 1

Temporarily disable autovacuum on the specific partition(s) that crash (ALTER TABLE ... SET (autovacuum_enabled = false)) to stop segfaults; schedule manual VACUUM runs during maintenance windows to control load — this is reversible and prevents further crashes until a software fix is available.

2

Diagnostic step 2

Reproduce the crash on an isolated staging host with the same PostgreSQL build and configuration and collect full core dumps, server log, and pg_dump of schema (avoid exporting production data unnecessarily). Provide these artifacts to the PostgreSQL mailing list or vendor support rather than public forums (avoid sharing PII).

3

Diagnostic step 3

Check installed extensions with SELECT * FROM pg_extension; ensure none are built for a different major version. If any extension binary was not upgraded with the server, rebuild/reinstall the extension against the new server version.

4

Diagnostic step 4

Reduce autovacuum concurrency and memory settings as a mitigation: set autovacuum_max_workers to a lower value and lower maintenance_work_mem to see if the crash can be avoided while still allowing background cleanup.

5

Diagnostic step 5

If you can confirm the crash reproduces with upstream 15.2, test with the latest minor release or the source tree's current tip (or vendor-supplied patch) in staging to see if a fix exists. If a fix is not yet available, open a bug report with PostgreSQL project including core backtrace and reproduction steps, and consider rolling back to the last known-good PostgreSQL 14 in production after planning downtime — escalate to a DBA or PostgreSQL specialist for controlled rollback if needed.