aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/rmgrdesc
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-11-24 10:43:32 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-11-24 11:09:08 +0200
commit0bd624d63b056205fda17a2d694d91db16468e3f (patch)
tree9ed541bf3c60e923ad18e7539e9b082381a48ec2 /src/backend/access/rmgrdesc
parente2dc3f57726199408902ba87eaaf7b95d1223744 (diff)
downloadpostgresql-0bd624d63b056205fda17a2d694d91db16468e3f.tar.gz
postgresql-0bd624d63b056205fda17a2d694d91db16468e3f.zip
Distinguish XLOG_FPI records generated for hint-bit updates.
Add a new XLOG_FPI_FOR_HINT record type, and use that for full-page images generated for hint bit updates, when checksums are enabled. The new record type is replayed exactly the same as XLOG_FPI, but allows them to be tallied separately e.g. in pg_xlogdump.
Diffstat (limited to 'src/backend/access/rmgrdesc')
-rw-r--r--src/backend/access/rmgrdesc/xlogdesc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/access/rmgrdesc/xlogdesc.c b/src/backend/access/rmgrdesc/xlogdesc.c
index 4088ba99b7f..eba046d1fa9 100644
--- a/src/backend/access/rmgrdesc/xlogdesc.c
+++ b/src/backend/access/rmgrdesc/xlogdesc.c
@@ -74,7 +74,7 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
appendStringInfo(buf, "%s", xlrec->rp_name);
}
- else if (info == XLOG_FPI)
+ else if (info == XLOG_FPI || info == XLOG_FPI_FOR_HINT)
{
/* no further information to print */
}
@@ -170,6 +170,9 @@ xlog_identify(uint8 info)
case XLOG_FPI:
id = "FPI";
break;
+ case XLOG_FPI_FOR_HINT:
+ id = "FPI_FOR_HINT";
+ break;
}
return id;