2018-04-29 11:20:51 -04:00
|
|
|
/***********************************************************************************************************************************
|
2021-10-21 13:31:22 -04:00
|
|
|
PostgreSQL Version Constants
|
2018-04-29 11:20:51 -04:00
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#ifndef POSTGRES_VERSION_H
|
|
|
|
#define POSTGRES_VERSION_H
|
|
|
|
|
2018-09-25 10:24:42 +01:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
PostgreSQL name
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#define PG_NAME "PostgreSQL"
|
|
|
|
|
2018-04-29 11:20:51 -04:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
PostgreSQL version constants
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#define PG_VERSION_93 90300
|
|
|
|
#define PG_VERSION_94 90400
|
|
|
|
#define PG_VERSION_95 90500
|
|
|
|
#define PG_VERSION_96 90600
|
|
|
|
#define PG_VERSION_10 100000
|
|
|
|
#define PG_VERSION_11 110000
|
2019-10-01 13:20:43 -04:00
|
|
|
#define PG_VERSION_12 120000
|
2020-05-21 13:46:16 -04:00
|
|
|
#define PG_VERSION_13 130000
|
2021-05-24 17:17:03 -04:00
|
|
|
#define PG_VERSION_14 140000
|
2022-05-04 11:55:59 -04:00
|
|
|
#define PG_VERSION_15 150000
|
2018-04-29 11:20:51 -04:00
|
|
|
|
2022-05-04 11:55:59 -04:00
|
|
|
#define PG_VERSION_MAX PG_VERSION_15
|
2019-03-21 21:11:36 +04:00
|
|
|
|
2019-08-01 15:38:27 -04:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Version where various PostgreSQL capabilities were introduced
|
|
|
|
***********************************************************************************************************************************/
|
2019-09-26 07:52:02 -04:00
|
|
|
// tablespace_map is created during backup
|
|
|
|
#define PG_VERSION_TABLESPACE_MAP PG_VERSION_95
|
|
|
|
|
|
|
|
// recovery target action supported
|
|
|
|
#define PG_VERSION_RECOVERY_TARGET_ACTION PG_VERSION_95
|
|
|
|
|
2020-06-25 08:02:48 -04:00
|
|
|
// parallel query supported
|
|
|
|
#define PG_VERSION_PARALLEL_QUERY PG_VERSION_96
|
|
|
|
|
2019-08-01 15:38:27 -04:00
|
|
|
// xlog was renamed to wal
|
|
|
|
#define PG_VERSION_WAL_RENAME PG_VERSION_10
|
|
|
|
|
2019-10-01 13:20:43 -04:00
|
|
|
// recovery settings are implemented as GUCs (recovery.conf is no longer valid)
|
|
|
|
#define PG_VERSION_RECOVERY_GUC PG_VERSION_12
|
|
|
|
|
2018-09-25 10:24:42 +01:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
PostgreSQL version string constants for use in error messages
|
|
|
|
***********************************************************************************************************************************/
|
2023-04-16 17:32:24 +03:00
|
|
|
#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"
|
2018-09-25 10:24:42 +01:00
|
|
|
|
2018-04-29 11:20:51 -04:00
|
|
|
#endif
|