mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 08:56:29 +00:00
Remove support for pre-9.3 servers
This commit is contained in:
17
repmgr.c
17
repmgr.c
@@ -889,19 +889,10 @@ do_standby_clone(void)
|
|||||||
|
|
||||||
check_master_config(conn, true);
|
check_master_config(conn, true);
|
||||||
|
|
||||||
/*
|
sqlquery_snprintf(sqlquery,
|
||||||
* Check if the tablespace locations exists and that we can write to them.
|
"SELECT pg_tablespace_location(oid) spclocation "
|
||||||
*/
|
" FROM pg_tablespace "
|
||||||
if (master_version_num < 90200)
|
"WHERE spcname NOT IN ('pg_default', 'pg_global')");
|
||||||
sqlquery_snprintf(sqlquery,
|
|
||||||
"SELECT spclocation "
|
|
||||||
" FROM pg_tablespace "
|
|
||||||
"WHERE spcname NOT IN ('pg_default', 'pg_global')");
|
|
||||||
else
|
|
||||||
sqlquery_snprintf(sqlquery,
|
|
||||||
"SELECT pg_tablespace_location(oid) spclocation "
|
|
||||||
" FROM pg_tablespace "
|
|
||||||
"WHERE spcname NOT IN ('pg_default', 'pg_global')");
|
|
||||||
|
|
||||||
log_debug("standby clone: %s\n", sqlquery);
|
log_debug("standby clone: %s\n", sqlquery);
|
||||||
|
|
||||||
|
|||||||
10
repmgrd.c
10
repmgrd.c
@@ -48,7 +48,7 @@
|
|||||||
const XLogRecPtr InvalidXLogRecPtr = {0, 0};
|
const XLogRecPtr InvalidXLogRecPtr = {0, 0};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= 90300
|
|
||||||
#define XLAssign(a, b) \
|
#define XLAssign(a, b) \
|
||||||
a = b
|
a = b
|
||||||
|
|
||||||
@@ -57,15 +57,7 @@ const XLogRecPtr InvalidXLogRecPtr = {0, 0};
|
|||||||
|
|
||||||
#define XLByteLT(a, b) \
|
#define XLByteLT(a, b) \
|
||||||
(a < b)
|
(a < b)
|
||||||
#else
|
|
||||||
#define XLAssign(a, b) \
|
|
||||||
a.xlogid = b.xlogid; \
|
|
||||||
a.xrecoff = b.xrecoff
|
|
||||||
|
|
||||||
#define XLAssignValue(a, uxlogid, uxrecoff) \
|
|
||||||
a.xlogid = uxlogid; \
|
|
||||||
a.xrecoff = uxrecoff
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user