From bccef890f0436a08b7a2e9f18740f3bf0641062c Mon Sep 17 00:00:00 2001 From: Mario Gonzalez Date: Wed, 16 Oct 2024 17:26:38 -0300 Subject: [PATCH] WIP: using local_conn var. "conn" doesn't exist --- repmgr-action-standby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index c222c7f8..2aa46868 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -5299,7 +5299,7 @@ do_standby_switchover(void) { 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")); }