mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user