mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
doc: update HISTORY and release notes
This commit is contained in:
2
HISTORY
2
HISTORY
@@ -3,6 +3,8 @@
|
|||||||
server and logging output is not explicitly redirected (Ian)
|
server and logging output is not explicitly redirected (Ian)
|
||||||
repmgr: improve switchover log messages and exit code when old primary could
|
repmgr: improve switchover log messages and exit code when old primary could
|
||||||
not be shut down cleanly (Ian)
|
not be shut down cleanly (Ian)
|
||||||
|
repmgr: check demotion candidate can make a replication connection to the
|
||||||
|
promotion candidate before executing a switchover; GitHub #370 (Ian)
|
||||||
repmgr: add check for sufficient walsenders/replication slots before executing
|
repmgr: add check for sufficient walsenders/replication slots before executing
|
||||||
a switchover; GitHub #371 (Ian)
|
a switchover; GitHub #371 (Ian)
|
||||||
repmgr: add --dry-run mode to "repmgr standby follow"; GitHub #368 (Ian)
|
repmgr: add --dry-run mode to "repmgr standby follow"; GitHub #368 (Ian)
|
||||||
|
|||||||
@@ -2647,6 +2647,11 @@ get_node_replication_stats(PGconn *conn, int server_version_num, t_node_info *no
|
|||||||
PQExpBufferData query;
|
PQExpBufferData query;
|
||||||
PGresult *res = NULL;
|
PGresult *res = NULL;
|
||||||
|
|
||||||
|
if (server_version_num == UNKNOWN_SERVER_VERSION_NUM)
|
||||||
|
server_version_num = get_server_version(conn, NULL);
|
||||||
|
|
||||||
|
Assert(server_version_num != UNKNOWN_SERVER_VERSION_NUM);
|
||||||
|
|
||||||
initPQExpBuffer(&query);
|
initPQExpBuffer(&query);
|
||||||
|
|
||||||
appendPQExpBuffer(&query,
|
appendPQExpBuffer(&query,
|
||||||
|
|||||||
@@ -47,6 +47,13 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
add check to verify the demotion candidate can make a replication connection to the
|
||||||
|
promotion candidate before executing a switchover (GitHub #370)
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
add check for sufficient walsenders and replication slots on the promotion candidate before executing
|
add check for sufficient walsenders and replication slots on the promotion candidate before executing
|
||||||
|
|||||||
@@ -2174,7 +2174,6 @@ do_standby_switchover(void)
|
|||||||
PGconn *remote_conn = NULL;
|
PGconn *remote_conn = NULL;
|
||||||
|
|
||||||
t_node_info local_node_record = T_NODE_INFO_INITIALIZER;
|
t_node_info local_node_record = T_NODE_INFO_INITIALIZER;
|
||||||
int server_version_num = UNKNOWN_SERVER_VERSION_NUM;
|
|
||||||
|
|
||||||
/* the remote server is the primary to be demoted */
|
/* the remote server is the primary to be demoted */
|
||||||
char remote_conninfo[MAXCONNINFO] = "";
|
char remote_conninfo[MAXCONNINFO] = "";
|
||||||
@@ -2240,8 +2239,6 @@ do_standby_switchover(void)
|
|||||||
exit(ERR_BAD_CONFIG);
|
exit(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
|
|
||||||
server_version_num = get_server_version(local_conn, NULL);
|
|
||||||
|
|
||||||
if (runtime_options.dry_run == true)
|
if (runtime_options.dry_run == true)
|
||||||
{
|
{
|
||||||
log_notice(_("checking switchover on node \"%s\" (ID: %i) in --dry-run mode"),
|
log_notice(_("checking switchover on node \"%s\" (ID: %i) in --dry-run mode"),
|
||||||
|
|||||||
Reference in New Issue
Block a user