Skip to content

Commit

Permalink
Support quoted application_name in primary_conninfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiprem-fb committed Nov 25, 2020
1 parent 5e0b1af commit fb27480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/pgsqlms
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit fb27480

Please sign in to comment.