model-writtenrun 3493 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the investigation after parula intermittently changed partition_prune plans, noting that manually vacuuming an empty partition reproduced the symptoms but unexplained autovacuum activity should not simply be masked by disabling it #1.
- Matthias van de Meent reported possibly related join-order instability locally and in CI, although his log investigation found no autovacuum activity at the relevant time #2 #3.
- David Rowley suggested autovacuum logging, while Tom's attempt to provoke the failure by adding a long sleep did not reproduce it #4 #5.
- David supplied a diagnostic patch exposing relation statistics, index validity, and autovacuum counters; Tom endorsed it and requested another observation after the unstable tests #6 #7.
- David committed the attached diagnostics with a second copy of the query and expected output, a light expansion of the submitted patch #6 1db689715d.
- The next failure showed reltuples changing from -1 to 48 despite zero relation pages and zero autovacuum counters; Robins Tharakan enabled detailed autovacuum logging, and subsequent stable-branch failures showed no corresponding vacuum activity #8 #9 #10.
- Another failure produced the same impossible-looking row estimate on a different partition, shifting Tom's suspicion toward memory corruption or a compiler bug, particularly given parula's old GCC version #13 #14.
- Robins upgraded GCC from 7.3.1 to 13.2, but intermittent crashes continued, and the same reltuples=48 failure eventually recurred on the development branch #17 #18 #22.
- Robins also reported runs hanging in pg_sleep(0.1) with unexpectedly large waits, while Tomas Vondra could not reproduce failures in roughly 300 test runs on another aarch64 system using GCC 13.2 #20 #25 #28.
- Collected backtraces showed a puzzling zero endtime in pg_sleep, strengthening suspicion of compiler trouble; Tom suggested disabling optimization, and Robins reported 25 consecutive successful runs on the oldest tested branch with -O0 #29 #30 #32 #33.
- David cautioned that disabling optimization could merely change timing and proposed a concurrent-update workload to check whether locking failures were losing updates; no result for that experiment appears in the thread #34.
- After about four weeks without related reported failures, David proposed removing the diagnostics and Tom agreed that a compiler bug remained a plausible explanation; the resulting revert removed all instrumentation without an attached patch #35 #36 ec1a405adc.
- The thread ended with Robins explaining that the old machine had been decommissioned and promising to reopen the investigation if a replacement reproduced the problem; the diagnostics had been removed, but the underlying cause remained unconfirmed #37.