mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +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 if the tablespace locations exists and that we can write to them.
|
||||
*/
|
||||
if (master_version_num < 90200)
|
||||
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')");
|
||||
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);
|
||||
|
||||
|
||||
10
repmgrd.c
10
repmgrd.c
@@ -48,7 +48,7 @@
|
||||
const XLogRecPtr InvalidXLogRecPtr = {0, 0};
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM >= 90300
|
||||
|
||||
#define XLAssign(a, b) \
|
||||
a = b
|
||||
|
||||
@@ -57,15 +57,7 @@ const XLogRecPtr InvalidXLogRecPtr = {0, 0};
|
||||
|
||||
#define XLByteLT(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