model-writtenrun 1843 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shenhao Wang reported that OID wraparound could give temporary and permanent tables the same relfilenode, breaking logical replication, and proposed preventing such collisions during allocation in #1.
- Takamichi Osumi reproduced the failure, verified the initial fix, and suggested cleanup in #2; he also demonstrated the SQL-callable pg_filenode_relation() failure in #3, and Shenhao incorporated the feedback plus a SnapshotAny scan in #4.
- Kyotaro Horiguchi argued that allocation-time checks would unnecessarily narrow the relfilenode namespace and proposed resolving collisions during lookup in #5; Shenhao accepted that direction in #6.
- Masahiko Sawada warned that cached temporary relations could still defeat lookup prioritization and suggested either excluding them or extending the lookup API in #7.
- After a long gap, Kyotaro supplied development and stable-branch variants in #9, adding persistence-aware lookup on the development branch and prioritizing non-temporary relations on older branches.
- Robert Haas questioned the need to support temporary relations at all in #10, prompting Kyotaro's simpler exclusion patch and documentation in #11; Robert confirmed the approach in #12, and Michael Paquier supported it because unique temporary-relation identification requires a backend identifier in #13.
- Masahiko endorsed filtering inside the catalog-scan loop and requested tests in #14; Vignesh added regression coverage and adapted the existing mapping test in #15.
- Ashutosh Bapat refined the comments and tests, restored TOAST-table coverage, and explained why an inequality scan key would sacrifice indexed lookup in #16; during that review he also demonstrated substantial memory growth from negative cache entries.
- Ashutosh rebased the main fix and included an experimental patch disabling negative caching in #17, then explicitly withdrew that experimental patch from consideration in #18.
- Michael prioritized backpatching the original bug fix and requested simpler documentation and removal of the catalog-description change in #19; Ashutosh supplied wording in #20, and Michael agreed to finish the edits in #21.
- Michael committed the first patch from #17 as ef03ea01fe, crediting Vignesh as author, retaining the temporary-relation exclusion, and making light documentation and test edits while leaving negative-cache behavior unchanged.
- Ashutosh returned to the remaining cache-bloat concern in #22 with a caller-controlled flag that disabled negative caching only for pg_filenode_relation(), preserving it for logical decoding and autoprewarm.
- Andres Freund challenged the special treatment in #23 and demonstrated comparable growth in other caches in #24; Ashutosh withdrew the remaining patch in #25, leaving the original fix committed and the cache-bloat proposal abandoned.