summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorPeter Eisentraut2016-01-30 23:11:16 +0000
committerChristoph Berg2016-05-26 12:03:16 +0000
commitd01af7367424ed5f4e9c03a778f47e2fded62795 (patch)
tree7b9a080a691536587fae71eedfaed99f68a3747c /check_postgres.pl
parent51acc620d4a015c47e09d95b4c639284ec10d645 (diff)
Call psql with option -X
Starting in PostgreSQL 9.6, psql -c no longer implies -X, so it has to be added explicitly in order to avoid customizations in .psqlrc interfering with the output parsing.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 178fb3763..b0433f6a1 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -2524,7 +2524,7 @@ sub run_command {
## Store this target in the global target list
push @{$info->{db}}, $db;
- my @args = ('-q', '-t');
+ my @args = ('-X', '-q', '-t');
if (defined $db->{dbservice} and length $db->{dbservice}) { ## XX Check for simple names
$db->{pname} = "service=$db->{dbservice}";
$ENV{PGSERVICE} = $db->{dbservice};