We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc1e659 commit a725602Copy full SHA for a725602
check_postgres.pl
@@ -2251,7 +2251,7 @@ sub run_command {
2251
$ENV{PGSERVICE} = $db->{dbservice};
2252
}
2253
else {
2254
- $db->{pname} = "port=$db->{port} host=$db->{host} db=$db->{dbname} user=$db->{dbuser}";
+ $db->{pname} = "port=" . ($db->{port} || $opt{defaultport}) . " host=$db->{host} db=$db->{dbname} user=$db->{dbuser}";
2255
2256
2257
## If all we want is a connection string, give it and leave now
0 commit comments