From 29a49d137f0c2c3f9f36125d15e7d3a288dbcfb7 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Tue, 27 Oct 2020 15:25:46 +0100 Subject: [PATCH] Support PG14: nextFullXid got renamed to nextXidEpoch PostgreSQL fea10a643. --- pg_filedump.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pg_filedump.c b/pg_filedump.c index 07cbe82..2cd5c6d 100644 --- a/pg_filedump.c +++ b/pg_filedump.c @@ -1780,9 +1780,12 @@ FormatControl(char *buffer) checkPoint->ThisTimeLineID, #if PG_VERSION_NUM < 120000 checkPoint->nextXidEpoch, checkPoint->nextXid, -#else +#elif PG_VERSION_NUM < 140000 EpochFromFullTransactionId(checkPoint->nextFullXid), XidFromFullTransactionId(checkPoint->nextFullXid), +#else + EpochFromFullTransactionId(checkPoint->nextXid), + XidFromFullTransactionId(checkPoint->nextXid), #endif checkPoint->nextOid, checkPoint->nextMulti, checkPoint->nextMultiOffset, -- 2.39.5