Check data directory not used by an active instance before cloning

This involves adding some infrastructure to parse pg_control in a
reasonably version-independent fashion. This will probably be useful
in other contexts where we need to verify the status of a
data directory where the instance isn't running.
This commit is contained in:
Ian Barwick
2017-05-12 08:46:49 +09:00
parent d6b36e13d8
commit 4c5f065ef2
5 changed files with 165 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ do_master_register(void)
node_info.priority = config_file_options.priority;
initPQExpBuffer(&event_description);
puts("here");
if (record_found)
{
record_created = update_node_record(conn,