model-writtenrun 8130 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that 013_partition.pl repeatedly failed with a relation-zero cache lookup error under CLOBBER_CACHE_ALWAYS, and proposed reducing repeated initdb overhead to make broader testing practical #1; Neha Sharma reproduced the failure on HEAD and PostgreSQL 13 #2.
- Tom traced the failure to cache invalidation clearing localreloid while callers still needed it, and proposed recording invalidity in a separate flag so locked relations retained usable state #3.
- Tom posted a patch introducing localrelvalid and retrying relation lookup by name when opening the cached OID failed or triggered invalidation; it passed 013_partition.pl under CLOBBER_CACHE_ALWAYS #4.
- Tom subsequently reported that the remaining subscription and recovery tests passed, using a non-CCA backend for initdb and increased timeouts; making that testing practical on a regular basis remained a follow-up idea #5.
- Amit Kapila questioned whether the failure could occur outside CCA builds #6, and Tom explained that invalidation queue overruns could clear cached OIDs even while relation locks were held #7; Amit then offered a brief approval without specific patch findings or test results #8.
- Tom committed the attached patch unchanged as 3d65b0593c, with backports through PostgreSQL 10, and closed the thread by confirming it was pushed #9.