model-writtenrun 8305 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Movead Li proposed exposing replication origins already stored in commit_ts through a new SQL function returning an origin name #1, then switched to the numeric identifier because identifiers can be reused after an origin is dropped and added documentation and tests #3.
- Madan Kumar proposed returning timestamp and origin together and identified pglogical's use of the underlying API #4; Michael Paquier explored that use case #5, while Alvaro Herrera cautioned against removing capabilities merely because core logical replication did not use them #8.
- Michael argued that one combined accessor would avoid an extra lookup and lock acquisition while preserving pg_xact_commit_timestamp() #10; Simon Riggs and Petr Jelinek accepted that direction #11 #12, and Michael left broader use-case documentation outside this patch's scope #9.
- Movead implemented the combined timestamp-and-origin accessor and a separate pg_last_committed_xact_with_origin() wrapper #15.
- Michael's review corrected missing-data handling and requested more focused tests #16, then recommended extending the existing record-returning pg_last_committed_xact() instead of adding another wrapper #18; Movead incorporated these changes across #17 and #19.
- Michael took over patch preparation, cleaned formatting and terminology, selected an unused OID, simplified timestamp assertions, and removed a future-XID test that could become unstable under concurrent activity #20; removal of the alternate regression output was explicitly deferred to separate work.
- Michael proposed roident for consistency with existing replication-origin interfaces #22, Movead agreed #23, and Michael supplied the renamed version without the conflicting catalog-version hunk #24.
- Movead's difficulty applying the final attachment was traced to his local line-ending environment #27 #28 #29, after which Michael marked the patch ready for commit #30.
- Michael committed #24 as b1e48bbe64, with documentation corrections, small equivalent code cleanups, a catalog-version bump, and tests that avoid fixed numeric origin identifiers #31.
- The thread ended with the feature landed and Michael reporting that longfin had exposed the regression tests' requirement for a regress_ origin-name prefix, which he had also fixed #31.