You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-05 00:28:52 +02:00
PostgreSQL 16 Support.
Add catalog version and WAL magic for PostgreSQL 16. The GUC to force parallel mode has be renamed so update that in the tests.
This commit is contained in:
@ -134,11 +134,6 @@ typedef struct
|
||||
uint32 xrecoff; /* low bits */
|
||||
} PageXLogRecPtr;
|
||||
|
||||
// PageXLogRecPtrGet macro
|
||||
// ---------------------------------------------------------------------------------------------------------------------------------
|
||||
#define PageXLogRecPtrGet(val) \
|
||||
((uint64) (val).xlogid << 32 | (val).xrecoff)
|
||||
|
||||
// PageHeaderData type
|
||||
// ---------------------------------------------------------------------------------------------------------------------------------
|
||||
/*
|
||||
|
@ -158,6 +158,19 @@ Types from src/include/catalog/catversion.h
|
||||
// ---------------------------------------------------------------------------------------------------------------------------------
|
||||
#if PG_VERSION > PG_VERSION_MAX
|
||||
|
||||
#elif PG_VERSION >= PG_VERSION_16
|
||||
|
||||
/*
|
||||
* 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 202304110
|
||||
|
||||
#elif PG_VERSION >= PG_VERSION_15
|
||||
|
||||
/*
|
||||
@ -1708,6 +1721,10 @@ Types from src/include/access/xlog_internal.h
|
||||
// ---------------------------------------------------------------------------------------------------------------------------------
|
||||
#if PG_VERSION > PG_VERSION_MAX
|
||||
|
||||
#elif PG_VERSION >= PG_VERSION_16
|
||||
|
||||
#define XLOG_PAGE_MAGIC 0xD113 /* can be used as WAL version indicator */
|
||||
|
||||
#elif PG_VERSION >= PG_VERSION_15
|
||||
|
||||
#define XLOG_PAGE_MAGIC 0xD110 /* can be used as WAL version indicator */
|
||||
|
@ -19,8 +19,9 @@ PostgreSQL version constants
|
||||
#define PG_VERSION_13 130000
|
||||
#define PG_VERSION_14 140000
|
||||
#define PG_VERSION_15 150000
|
||||
#define PG_VERSION_16 160000
|
||||
|
||||
#define PG_VERSION_MAX PG_VERSION_15
|
||||
#define PG_VERSION_MAX PG_VERSION_16
|
||||
|
||||
/***********************************************************************************************************************************
|
||||
PostgreSQL version string constants for use in error messages
|
||||
@ -35,5 +36,6 @@ PostgreSQL version string constants for use in error messages
|
||||
#define PG_VERSION_13_Z "13"
|
||||
#define PG_VERSION_14_Z "14"
|
||||
#define PG_VERSION_15_Z "15"
|
||||
#define PG_VERSION_16_Z "16"
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user