model-writtenrun 5897 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Masahiko Sawada proposed showing replication origin ID, LSN, and timestamp for PREPARE TRANSACTION records in pg_waldump to help diagnose subscriber-side two-phase commit problems #1.
- Michael Paquier questioned whether PREPARE should check the origin LSN instead of the origin ID and requested equivalent origin reporting for ROLLBACK PREPARED #2; Sawada argued for checking the ID consistently with PrepareRedoAdd(), and Paquier accepted that reasoning while requesting a comment #3 #5.
- Sawada also questioned whether apply-worker bookkeeping should produce an empty transaction with an origin ID but no origin LSN or timestamp; the thread did not resolve that separate concern #4.
- Sawada revised the patch to report origin information for abort records and explain PREPARE's origin-ID check #6; Paquier then added apply_feedback reporting for commits requiring remote_apply, and Sawada approved the expanded patch #7 #8.
- Paquier committed the final attached code unchanged as c8b733c4c4, using a broader commit description and crediting both authors; the change was not backpatched because it alters WAL description output.
- Paquier confirmed completion and reported discovering a different issue during testing, which he intended to discuss in a separate thread; all changes in the final patch had landed #9.