From 109c4c2d95fd0925d0a4f842c0c9878ea2f16971 Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 28 Dec 2021 14:56:49 +0100 Subject: [PATCH] fix standby mode validation --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 406a2877..0eab23af 100644 --- a/config.go +++ b/config.go @@ -760,7 +760,7 @@ func ValidateConnectTargetSessionAttrsStandby(ctx context.Context, pgConn *PgCon return result.Err } - if string(result.Rows[0][0]) != "f" { + if string(result.Rows[0][0]) != "t" { return errors.New("server is not in hot standby mode") }