From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make pg_waldump report more detail information about PREPARE TRA
Date: Wed, 13 Nov 2019 08:36:04 +0000
Message-ID: <E1iUo8C-0000WZ-VO@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7b8a899bdeb638f46e102d1714c079a0874e9fa0
Modified Files
--------------
src/backend/access/rmgrdesc/standbydesc.c | 4 +
src/backend/access/rmgrdesc/xactdesc.c | 140 +++++++++++++++++++++---------
src/backend/access/transam/twophase.c | 56 +-----------
src/include/access/twophase.h | 2 -
src/include/access/xact.h | 19 ++++
5 files changed, 125 insertions(+), 96 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org
Subject: Re: pgsql: Make pg_waldump report more detail information about PREPARE TRA
In-Reply-To: <E1iUo8C-0000WZ-VO@gemulon.postgresql.org>
References: <E1iUo8C-0000WZ-VO@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox