mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
"standby clone": skip tablespace mapping in PostgreSQL 9.3
This commit is contained in:
@@ -3619,6 +3619,12 @@ initialise_direct_clone(t_node_info *node_record)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (config_file_options.tablespace_mapping.head != NULL)
|
if (config_file_options.tablespace_mapping.head != NULL)
|
||||||
|
{
|
||||||
|
if (server_version_num < 90400)
|
||||||
|
{
|
||||||
|
log_error(_("tablespace mapping not supported in PostgreSQL 9.3, ignoring"));
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
TablespaceListCell *cell = false;
|
TablespaceListCell *cell = false;
|
||||||
KeyValueList not_found = {NULL, NULL};
|
KeyValueList not_found = {NULL, NULL};
|
||||||
@@ -3626,6 +3632,7 @@ initialise_direct_clone(t_node_info *node_record)
|
|||||||
matched = 0;
|
matched = 0;
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
||||||
|
|
||||||
for (cell = config_file_options.tablespace_mapping.head; cell; cell = cell->next)
|
for (cell = config_file_options.tablespace_mapping.head; cell; cell = cell->next)
|
||||||
{
|
{
|
||||||
char *old_dir_escaped = escape_string(source_conn, cell->old_dir);
|
char *old_dir_escaped = escape_string(source_conn, cell->old_dir);
|
||||||
@@ -3640,8 +3647,7 @@ initialise_direct_clone(t_node_info *node_record)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
key_value_list_set(
|
key_value_list_set(¬_found,
|
||||||
¬_found,
|
|
||||||
cell->old_dir,
|
cell->old_dir,
|
||||||
"");
|
"");
|
||||||
}
|
}
|
||||||
@@ -3673,6 +3679,7 @@ initialise_direct_clone(t_node_info *node_record)
|
|||||||
exit(ERR_BAD_CONFIG);
|
exit(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If replication slots requested, create appropriate slot on the source
|
* If replication slots requested, create appropriate slot on the source
|
||||||
|
|||||||
Reference in New Issue
Block a user