aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/rmgrdesc/gistdesc.c
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2023-12-21 10:09:38 +0900
committerMasahiko Sawada <msawada@postgresql.org>2023-12-21 10:09:38 +0900
commitbf6260b39da6ef34c7147d560c49f35d2bbf07c9 (patch)
tree2ad1e63808fd2006769dd78a165879d812109c6c /src/backend/access/rmgrdesc/gistdesc.c
parent387aecc948ed2fa39e04f84d9eea086d32ebd42e (diff)
downloadpostgresql-bf6260b39da6ef34c7147d560c49f35d2bbf07c9.tar.gz
postgresql-bf6260b39da6ef34c7147d560c49f35d2bbf07c9.zip
Show isCatalogRel in several rmgr descriptions.
Commit 6af179395 added isCatalogRel field to some WAL record types, but this field was not shown in the rmgr descriptions. This commit changes the several rmgr descriptions to display the isCatalogRel field. Author: Bertrand Drouvot Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/957dc8f9-2a02-4640-9c01-9dcbf97c4187%40gmail.com
Diffstat (limited to 'src/backend/access/rmgrdesc/gistdesc.c')
-rw-r--r--src/backend/access/rmgrdesc/gistdesc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/access/rmgrdesc/gistdesc.c b/src/backend/access/rmgrdesc/gistdesc.c
index 5dc6e1dcee0..651e645b857 100644
--- a/src/backend/access/rmgrdesc/gistdesc.c
+++ b/src/backend/access/rmgrdesc/gistdesc.c
@@ -26,18 +26,20 @@ out_gistxlogPageUpdate(StringInfo buf, gistxlogPageUpdate *xlrec)
static void
out_gistxlogPageReuse(StringInfo buf, gistxlogPageReuse *xlrec)
{
- appendStringInfo(buf, "rel %u/%u/%u; blk %u; snapshotConflictHorizon %u:%u",
+ appendStringInfo(buf, "rel %u/%u/%u; blk %u; snapshotConflictHorizon %u:%u, isCatalogRel %c",
xlrec->locator.spcOid, xlrec->locator.dbOid,
xlrec->locator.relNumber, xlrec->block,
EpochFromFullTransactionId(xlrec->snapshotConflictHorizon),
- XidFromFullTransactionId(xlrec->snapshotConflictHorizon));
+ XidFromFullTransactionId(xlrec->snapshotConflictHorizon),
+ xlrec->isCatalogRel ? 'T' : 'F');
}
static void
out_gistxlogDelete(StringInfo buf, gistxlogDelete *xlrec)
{
- appendStringInfo(buf, "delete: snapshotConflictHorizon %u, nitems: %u",
- xlrec->snapshotConflictHorizon, xlrec->ntodelete);
+ appendStringInfo(buf, "delete: snapshotConflictHorizon %u, nitems: %u, isCatalogRel %c",
+ xlrec->snapshotConflictHorizon, xlrec->ntodelete,
+ xlrec->isCatalogRel ? 'T' : 'F');
}
static void