Remove support for pre-9.3 servers

This commit is contained in:
Ian Barwick
2015-01-06 14:53:26 +09:00
parent 687872e979
commit 241622694d
2 changed files with 5 additions and 22 deletions

View File

@@ -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);