model-writtenrun 2073 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ashutosh Bapat opened the discussion because the documented subscriber-side queries depend on PostgreSQL catalogs unavailable to non-PostgreSQL subscribers; Shveta Malik corrected his interpretation of sync_replication_slots and proposed leaving slot identification to the downstream implementation #1 #2 #3.
- Amit Kapila explained that querying every failover slot on the primary can be inappropriate for individual subscribers and cannot work after the primary fails, leading Ashutosh to distinguish per-subscriber readiness from checking all subscribers before a planned failover, an approach Amit supported #4 #6 #7.
- Ashutosh submitted documentation implementing both cases, and Shveta supplied a fix-up explaining that the subscriber queries should run on every relevant subscriber and that invalidated slots should remain visible so the standby check reports their actual readiness; Ashutosh incorporated her changes #8 #9 #10.
- Ashutosh identified that NOT conflicting could miss slots invalidated for removed WAL, and Shveta supplied a correction using invalidation_reason IS NULL while restoring the temporary-slot filter for consistency with the code; Ashutosh incorporated these changes and separated the standby-query correction into its own patch #10 #11 #12.
- After Shveta confirmed the final series looked good, Amit committed both patches together as f2e41d9e2f, preserving their changes apart from rebasing and crediting Ashutosh and Shveta as authors, with backpatches through PostgreSQL 17 #13 #14.
- Ashutosh then proposed explicitly mentioning failover-enabled slots created directly, but Amit judged the existing linked documentation sufficient and Ashutosh agreed, leaving the main series committed and the additional clarification declined #14 #15 #16.