From f2bb33b5078ec1230a3b61f8570a7a3851a65b85 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 4 May 2009 20:29:16 -0400 Subject: Suport PGBINDIR for psql executable as well --- check_postgres.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/check_postgres.pl b/check_postgres.pl index e87e515b3..c351b1dc1 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -792,7 +792,8 @@ if (! defined $PSQL or ! length $PSQL) { -e $PSQL or ndie msg('opt-psql-noexist', $PSQL); } else { - chomp($PSQL = qx{which psql}); + my $psql = $ENV{PGBINDIR} ? "$ENV{PGBINDIR}/psql" : 'psql'; + chomp($PSQL = qx{which $psql}); $PSQL or ndie msg('opt-psql-nofind'); } } @@ -6091,7 +6092,7 @@ Items not specifically attributed are by Greg Sabino Mullane. =over 4 -=item B (May ??, 2009) +=item B (May 4, 2009) Added internationalization support (Greg) Added the 'disabled_triggers' check (Greg) @@ -6111,7 +6112,8 @@ Items not specifically attributed are by Greg Sabino Mullane. Set stats to zero if we bail early due to USERWHERECLAUSE (Andras Fabian) Add additional items to dbstats output (Andras Fabian) Remove --schema option from the fsm_ checks. (Greg Mullane and Robert Treat) - Various fixes. (Jeff Boes) + Handle case when ENV{PGUSER} is set. (Andy Lester) + Many various fixes. (Jeff Boes) Fix --dbservice: check version and use ENV{PGSERVICE} for old versions (Cédric Villemain) =item B (February 10, 2009) -- cgit v1.2.3