1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

PostgreSQL 17 Support.

Add catalog version and WAL magic for PostgreSQL 17.
This commit is contained in:
David Steele
2024-04-18 10:56:24 +10:00
committed by GitHub
parent c8cf8e1f2b
commit fb22f04555
13 changed files with 82 additions and 12 deletions

View File

@ -158,6 +158,19 @@ Types from src/include/catalog/catversion.h
// ---------------------------------------------------------------------------------------------------------------------------------
#if PG_VERSION > PG_VERSION_MAX
#elif PG_VERSION >= PG_VERSION_17
/*
* We could use anything we wanted for version numbers, but I recommend
* following the "YYYYMMDDN" style often used for DNS zone serial numbers.
* YYYYMMDD are the date of the change, and N is the number of the change
* on that day. (Hopefully we'll never commit ten independent sets of
* catalog changes on the same day...)
*/
/* yyyymmddN */
#define CATALOG_VERSION_NO 202404021
#elif PG_VERSION >= PG_VERSION_16
/*
@ -576,7 +589,7 @@ typedef enum DBState
DB_SHUTDOWNING,
DB_IN_CRASH_RECOVERY,
DB_IN_ARCHIVE_RECOVERY,
DB_IN_PRODUCTION
DB_IN_PRODUCTION,
} DBState;
#endif
@ -1567,6 +1580,10 @@ Types from src/include/access/xlog_internal.h
// ---------------------------------------------------------------------------------------------------------------------------------
#if PG_VERSION > PG_VERSION_MAX
#elif PG_VERSION >= PG_VERSION_17
#define XLOG_PAGE_MAGIC 0xD115 /* can be used as WAL version indicator */
#elif PG_VERSION >= PG_VERSION_16
#define XLOG_PAGE_MAGIC 0xD113 /* can be used as WAL version indicator */