You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-05 00:28:52 +02:00
Rename PG_VERSION_*_STR constants to PG_VERSION_*_Z.
This is more consistent with other zero-terminated string constants and also has the benefit of being shorter.
This commit is contained in:
@ -169,7 +169,7 @@ pgWalSegmentSizeCheck(unsigned int pgVersion, unsigned int walSegmentSize)
|
||||
if (pgVersion < PG_VERSION_11 && walSegmentSize != PG_WAL_SEGMENT_SIZE_DEFAULT)
|
||||
{
|
||||
THROW_FMT(
|
||||
FormatError, "wal segment size is %u but must be %u for " PG_NAME " <= " PG_VERSION_10_STR, walSegmentSize,
|
||||
FormatError, "wal segment size is %u but must be %u for " PG_NAME " <= " PG_VERSION_10_Z, walSegmentSize,
|
||||
PG_WAL_SEGMENT_SIZE_DEFAULT);
|
||||
}
|
||||
|
||||
|
@ -46,15 +46,15 @@ Version where various PostgreSQL capabilities were introduced
|
||||
/***********************************************************************************************************************************
|
||||
PostgreSQL version string constants for use in error messages
|
||||
***********************************************************************************************************************************/
|
||||
#define PG_VERSION_93_STR "9.3"
|
||||
#define PG_VERSION_94_STR "9.4"
|
||||
#define PG_VERSION_95_STR "9.5"
|
||||
#define PG_VERSION_96_STR "9.6"
|
||||
#define PG_VERSION_10_STR "10"
|
||||
#define PG_VERSION_11_STR "11"
|
||||
#define PG_VERSION_12_STR "12"
|
||||
#define PG_VERSION_13_STR "13"
|
||||
#define PG_VERSION_14_STR "14"
|
||||
#define PG_VERSION_15_STR "15"
|
||||
#define PG_VERSION_93_Z "9.3"
|
||||
#define PG_VERSION_94_Z "9.4"
|
||||
#define PG_VERSION_95_Z "9.5"
|
||||
#define PG_VERSION_96_Z "9.6"
|
||||
#define PG_VERSION_10_Z "10"
|
||||
#define PG_VERSION_11_Z "11"
|
||||
#define PG_VERSION_12_Z "12"
|
||||
#define PG_VERSION_13_Z "13"
|
||||
#define PG_VERSION_14_Z "14"
|
||||
#define PG_VERSION_15_Z "15"
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user