model-writtenrun 1104 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Marcos Pegoraro reported that initial logical-replication synchronization repeatedly enumerated publication tables and proposed direct catalog joins in #1; his reproducer described roughly five seconds of metadata lookup per table with 50,000 tables in #2.
- Masahiko Sawada explained that the direct joins failed regression tests because they omitted generated-column and partition semantics, and proposed a dedicated lookup accepting a relation OID in #3.
- Sawada separately investigated quadratic list deduplication and posted a sorting experiment that reduced a 50,000-table lookup from 796 ms to 430 ms in #5; that experiment was not incorporated into the eventual targeted-lookup patch.
- Sawada implemented pg_get_publication_table_info() and reported reducing a lookup from 288 ms to 0.6 ms in #6, after which Matheus Alcantara and Chao Li reviewed duplicate assignments, shared tuple construction, formatting, and SRF behavior in #7 and #8.
- An alternative in #9 extended pg_get_publication_tables() but removed its variadic signature; Zhijie Hou identified cross-version compatibility and directly published partition problems in #10, prompting Sawada to restore the dedicated-function approach with fixes and regression tests in #11.
- Amit Kapila questioned the added complexity in #12, Jan Wieck suggested preserving both signatures through overloading in #14, and Sawada implemented that compatible design in #16.
- Bharath Rupireddy, Ajin Cherian, and Peter Smith identified invalid-OID handling, argument naming, test cleanup, and missing test cases in #17, #18, and #19, while Amit proposed passing all publication names directly to eliminate a join in #20.
- Sawada posted those fixes together with a second, experimental publication-array patch in #25, noting that removing the catalog join also required deciding how nonexistent publications should behave.
- Hou found additional partition-root and non-table-object problems in #27, while Hayato Kuroda independently benchmarked both alternatives in #28 and #30, observing nearly constant lookup time as the table count increased.
- Hayato proposed preserving the old interface's missing-publication errors in #32, Amit agreed in #33, and Sawada consolidated the two patches with that compatibility behavior, partition fixes, and expanded tests in #34.
- Hou subsequently found that unlogged and temporary tables were incorrectly accepted in #36, leading Sawada to add a preliminary publishability check in #40.
- Haoyan Wang caught an incorrect success return in that check in #41, Hayato also identified a memory-context problem in #44, and Hou supplied a helper-refactoring delta in #45; Sawada incorporated fixes and part of the refactoring in #48.
- Sawada declined to apply the targeted API to the all-tables publication view because it could be slower for that workload in #47, and treated broader reuse of the membership helper as separate future work in #38.
- Marcos requested documentation advising fewer synchronization workers for older publishers in #35, but Sawada favored mentioning the improvement in release notes because suitable worker counts depend on hardware and workload in #49.
- After discussing invalid OIDs with Amit, Sawada retained zero-result behavior rather than treating an invalid OID as an unfiltered request in #51, and simplified the helper further using Hou's proposal while relying on memory-context cleanup in #52.
- Amit accepted the final semantics and refactoring in #53 and #54, and Peter supplied final comment, argument-name, and test corrections in #55.
- Sawada committed #52 as fd7a25af11 with those light corrections and a catalog-version bump, then confirmed the push in #56; the targeted lookup landed for PostgreSQL 19 publishers, with no further patch or post-commit bug report in the thread.