Skip to content

Commit

Permalink
Merge pull request #182 from filiprem-fb/master
Browse files Browse the repository at this point in the history
Support quoted application_name in primary_conninfo.
  • Loading branch information
ioguix authored Nov 27, 2020
2 parents 5e0b1af + fb27480 commit d5b3e6d
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 d5b3e6d

Please sign in to comment.