Add name to nodes and show it for the standby in repl_status.

This commit is contained in:
Jaime Casanova
2011-07-26 16:58:02 -05:00
parent 020e17b059
commit 276c947202
4 changed files with 35 additions and 20 deletions

View File

@@ -858,9 +858,10 @@ checkNodeConfiguration(char *conninfo)
log_info(_("%s Adding node %d to cluster '%s'\n"),
progname, local_options.node, local_options.cluster_name);
sqlquery_snprintf(sqlquery, "INSERT INTO %s.repl_nodes "
"VALUES (%d, '%s', '%s', 'f')",
"VALUES (%d, '%s', '%s', '%s', 0, 'f')",
repmgr_schema, local_options.node,
local_options.cluster_name,
local_options.standby_name,
local_options.conninfo);
if (!PQexec(primaryConn, sqlquery))