Note where compatibility check for replication slots is carried out

Scanning the source code gives the impression there's no check.
This commit is contained in:
Ian Barwick
2015-03-05 10:12:36 +09:00
parent 0f8759d316
commit 04fe820aff
2 changed files with 3 additions and 2 deletions

View File

@@ -488,7 +488,7 @@ main(int argc, char **argv)
* If `use_replication_slots` set in the configuration file
* and command line parameter `--wal-keep-segments` was used,
* emit a warning as to the latter's redundancy. Note that
* the version check for 9.4 or later will occur afterwards.
* the version check for 9.4 or later is done in check_upstream_config()
*/
if(options.use_replication_slots && wal_keep_segments_used)
@@ -506,6 +506,7 @@ main(int argc, char **argv)
* NOTE: the slot name will be defined for each record, including
* the master; the `slot_name` column in `repl_nodes` defines
* the name of the slot, but does not imply a slot has been created.
* The version check for 9.4 or later is done in check_upstream_config()
*/
if(options.use_replication_slots)
{

View File

@@ -1503,8 +1503,8 @@ do_upstream_standby_failover(t_node_info upstream_node)
PQclear(res);
break;
}
PQclear(res);
PQclear(res);
}
/* Close the connection to this server */