model-writtenrun 8391 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jaime Casanova reported a sqlsmith-discovered crash when currtid accessed a partitioned table on PostgreSQL 12 and later in #1; Tom Lane traced it to missing storage checks and a NULL rd_tableam, proposing dummy table-access callbacks in #2.
- Michael Paquier favored local RELKIND_HAS_STORAGE checks after finding no similar table-access API misuse in #3, then supplied a patch with broader view-error improvements and new TID function and aggregate tests in #4.
- Álvaro Herrera considered the error-message overhaul excessive for backpatching in #5, so Michael removed it while retaining the storage checks and regression coverage in #6 and #7.
- Jaime tested the reduced patch, confirmed that the server no longer crashed, and caught a comment typo in #8; Álvaro reviewed it and preferred simpler elog errors in #10.
- Andres Freund explained that ODBC needed these functions only for very old servers and also favored untranslated errors in #11; the dummy-callback alternative remained under discussion in #12 and #13, but was not implemented.
- Michael switched the errors to elog and corrected the comment typo in #14, while favoring consideration of function removal for PostgreSQL 14 rather than after PostgreSQL 13 beta1.
- Michael committed #14 as e786be5fcb, omitting only two function-header comments and backpatching through PostgreSQL 12; his announcement in #15 also noted a new buildfarm failure.
- The new tests exposed a longstanding use-after-release bug under RELCACHE_FORCE_RELEASE: currtid_for_view closed the view before using its range-table entry, and Michael posted a separate fix to keep the view open through the recursive lookup in #16.
- Tom pointed out that prematurely releasing the lock also threatened the underlying table's existence in #17; Michael committed the patch unchanged as ce1c5b9ae8 and confirmed backpatching through PostgreSQL 9.5 in #18, leaving both crash fixes landed and possible function removal for future work.