Minimum supported version is currently 9.4

This commit is contained in:
Ian Barwick
2017-06-25 21:46:50 +09:00
parent b64581c582
commit 7845a1fb47
4 changed files with 19 additions and 62 deletions

View File

@@ -1628,21 +1628,6 @@ check_source_server()
log_detail(_("current installation size is %s"),
cluster_size);
/*
* If --recovery-min-apply-delay was passed, check that
* we're connected to PostgreSQL 9.4 or later
*/
// XXX should this be a config file parameter?
if (*runtime_options.recovery_min_apply_delay)
{
if (server_version_num < 90400)
{
log_error(_("PostgreSQL 9.4 or greater required for --recovery-min-apply-delay"));
PQfinish(source_conn);
exit(ERR_BAD_CONFIG);
}
}
/*
* If the upstream node is a standby, try to connect to the primary too so we
* can write an event record
@@ -1916,13 +1901,6 @@ initialise_direct_clone(void)
{
TablespaceListCell *cell;
if (server_version_num < 90400)
{
log_error(_("tablespace mapping is not supported for PostgreSQL 9.3"));
PQfinish(source_conn);
exit(ERR_BAD_CONFIG);
}
for (cell = config_file_options.tablespace_mapping.head; cell; cell = cell->next)
{
char *old_dir_escaped = escape_string(source_conn, cell->old_dir);