model-writtenrun 4703 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shi Yu reported that repeated pg_logical_slot_get_binary_changes calls exhausted callback slots and proposed unregistering pgoutput callbacks at shutdown through new cache APIs in #1.
- Kyotaro Horiguchi proposed preventing duplicate registration with a static boolean in #2, and Tom Lane supported that simpler approach because unregistering and re-registering adds expense and can disturb callback ordering in #3; Shi Yu implemented it in #4.
- Kyotaro Horiguchi suggested consolidating registration in #5, while Peter Smith proposed using init_rel_sync_cache and its existing cache pointer as the guard in #6; Kyotaro explained that shutdown resets that pointer, making it unsuitable, in #7.
- Michael Paquier favored keeping publication and relation registration separate and requested independent flags in #8; Shi Yu incorporated that design in #9.
- Michael Paquier accepted the revised patch in #10, and Peter Smith approved it with a request to pluralize the relation callback flag in #11.
- Tom Lane committed #9 as 05172f1f37 with the requested variable rename and comment edits, backpatched the fix to all supported branches, and confirmed the push in #12, leaving no outstanding work identified in the thread.