mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
cluster cleanup: explicitly log vacuum operation
This commit is contained in:
@@ -2359,7 +2359,7 @@ checkpoint(PGconn *conn)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* assumes superuser connection */
|
|
||||||
bool
|
bool
|
||||||
vacuum_table(PGconn *primary_conn, const char *table)
|
vacuum_table(PGconn *primary_conn, const char *table)
|
||||||
{
|
{
|
||||||
@@ -2375,7 +2375,8 @@ vacuum_table(PGconn *primary_conn, const char *table)
|
|||||||
|
|
||||||
if (PQresultStatus(res) != PGRES_COMMAND_OK)
|
if (PQresultStatus(res) != PGRES_COMMAND_OK)
|
||||||
{
|
{
|
||||||
log_db_error(primary_conn, NULL, _("unable to vacuum table \"%s\""), table);
|
log_db_error(primary_conn, NULL,
|
||||||
|
_("unable to vacuum table \"%s\""), table);
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1402,6 +1402,10 @@ do_cluster_cleanup(void)
|
|||||||
log_warning(_("unable to vacuum table \"repmgr.monitoring_history\""));
|
log_warning(_("unable to vacuum table \"repmgr.monitoring_history\""));
|
||||||
log_detail("%s", PQerrorMessage(primary_conn));
|
log_detail("%s", PQerrorMessage(primary_conn));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log_info(_("vacuum of table \"repmgr.monitoring_history\" completed"));
|
||||||
|
}
|
||||||
|
|
||||||
if (runtime_options.keep_history == 0)
|
if (runtime_options.keep_history == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user