summaryrefslogtreecommitdiff
path: root/src/backend/access/rmgrdesc/xlogdesc.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2020-03-21 09:38:33 -0700
committerNoah Misch <noah@leadboat.com>2020-03-21 09:38:34 -0700
commit43434ed94d80b4a181d5d9dc6bda585a9267eb1e (patch)
treebaae9d17853f875017f3d4f55f14009aabec6ce6 /src/backend/access/rmgrdesc/xlogdesc.c
parent78a34c68920a544292d54f60af561c267b95f64d (diff)
Back-patch log_newpage_range().
Back-patch a subset of commit 9155580fd5fc2a0cbb23376dfca7cd21f59c2c7b to v11, v10, 9.6, and 9.5. Include the latest repairs to this function. Use a new XLOG_FPI_MULTI value instead of reusing XLOG_FPI. That way, if an older server reads WAL from this function, that server will PANIC instead of applying just one page of the record. The next commit adds a call to this function. Discussion: https://postgr.es/m/20200304.162919.898938381201316571.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/access/rmgrdesc/xlogdesc.c')
-rw-r--r--src/backend/access/rmgrdesc/xlogdesc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/access/rmgrdesc/xlogdesc.c b/src/backend/access/rmgrdesc/xlogdesc.c
index f72f0760173..563fae5ebfa 100644
--- a/src/backend/access/rmgrdesc/xlogdesc.c
+++ b/src/backend/access/rmgrdesc/xlogdesc.c
@@ -78,7 +78,8 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
appendStringInfoString(buf, xlrec->rp_name);
}
- else if (info == XLOG_FPI || info == XLOG_FPI_FOR_HINT)
+ else if (info == XLOG_FPI || info == XLOG_FPI_FOR_HINT ||
+ info == XLOG_FPI_MULTI)
{
/* no further information to print */
}
@@ -182,6 +183,9 @@ xlog_identify(uint8 info)
case XLOG_FPI_FOR_HINT:
id = "FPI_FOR_HINT";
break;
+ case XLOG_FPI_MULTI:
+ id = "FPI_MULTI";
+ break;
}
return id;