mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
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
This commit is contained in:
@@ -102,6 +102,10 @@ standby_desc_invalidations(StringInfo buf,
|
||||
{
|
||||
int i;
|
||||
|
||||
/* Do nothing if there are no invalidation messages */
|
||||
if (nmsgs <= 0)
|
||||
return;
|
||||
|
||||
if (relcacheInitFileInval)
|
||||
appendStringInfo(buf, "; relcache init file inval dbid %u tsid %u",
|
||||
dbId, tsId);
|
||||
|
||||
Reference in New Issue
Block a user