WIP: using local_conn var. "conn" doesn't exist

This commit is contained in:
Mario Gonzalez
2024-10-16 17:26:38 -03:00
parent b92d43d136
commit bccef890f0

View File

@@ -5299,7 +5299,7 @@ do_standby_switchover(void)
{ {
log_warning(_("no authorized connection available, unable to issue CHECKPOINT")); log_warning(_("no authorized connection available, unable to issue CHECKPOINT"));
if (PQserverVersion(conn) >= 150000) if (PQserverVersion(local_conn) >= 150000)
{ {
log_hint(_("provide a superuser with -S/--superuser or grant pg_checkpoint role to repmgr user")); log_hint(_("provide a superuser with -S/--superuser or grant pg_checkpoint role to repmgr user"));
} }