From: Peter Eisentraut Date: Sat, 30 Jan 2016 23:11:16 +0000 (-0500) Subject: Call psql with option -X X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=d01af7367424ed5f4e9c03a778f47e2fded62795;p=check_postgres.git 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. --- 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};