Make pg_waldump report more detail information about PREPARE TRANSACTION record.
authorFujii Masao <[email protected]>
Wed, 13 Nov 2019 07:59:17 +0000 (16:59 +0900)
committerFujii Masao <[email protected]>
Wed, 13 Nov 2019 07:59:17 +0000 (16:59 +0900)
commit7b8a899bdeb638f46e102d1714c079a0874e9fa0
tree103b0b4d14db162686996a74ab240277b60d0432
parent94fec48516a77f219ab94890219d724b973e4674
Make pg_waldump report more detail information about PREPARE TRANSACTION record.

This commit changes xact_desc() so that it reports the detail information about
PREPARE TRANSACTION record, like GID (global transaction identifier),
timestamp at prepare transaction, delete-on-abort/commit relations,
XID of subtransactions, and invalidation messages. These are helpful
when diagnosing 2PC-related troubles.

Author: Fujii Masao
Reviewed-by: Michael Paquier, Andrey Lepikhov, Kyotaro Horiguchi, Julien Rouhaud, Alvaro Herrera
Discussion: https://postgr.es/m/CAHGQGwEvhASad4JJnCv=0dW2TJypZgW_Vpb-oZik2a3utCqcrA@mail.gmail.com
src/backend/access/rmgrdesc/standbydesc.c
src/backend/access/rmgrdesc/xactdesc.c
src/backend/access/transam/twophase.c
src/include/access/twophase.h
src/include/access/xact.h