From fb2748056f252d30a322417c441168448082e6a9 Mon Sep 17 00:00:00 2001 From: Filip Rembialkowski Date: Wed, 25 Nov 2020 13:52:59 +0100 Subject: [PATCH] Support quoted application_name in primary_conninfo. --- script/pgsqlms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/pgsqlms b/script/pgsqlms index b65297b..7dd695e 100755 --- a/script/pgsqlms +++ b/script/pgsqlms @@ -1347,7 +1347,7 @@ sub pgsql_validate_all { } $guc = qx{ $POSTGRES -C primary_conninfo -D "$pgdata" $start_opts}; - unless ($guc =~ /\bapplication_name=$nodename\b/) { + unless ($guc =~ /\bapplication_name='?$nodename'?\b/) { ocf_exit_reason( q{Parameter "primary_conninfo" MUST contain 'application_name=%s'. }. q{It is currently set to '%s'}, $nodename, $guc );