summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-05-05 00:29:16 +0000
committerGreg Sabino Mullane2009-05-05 00:29:16 +0000
commitf2bb33b5078ec1230a3b61f8570a7a3851a65b85 (patch)
tree0856ff159320a7e6efbfa32edb60ae5f7e4ca2cf
parent94495672881bfaaaf7ccb9d8047aba9858104a94 (diff)
Suport PGBINDIR for psql executable as well
-rwxr-xr-xcheck_postgres.pl8
1 files 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<Version 2.8.0> (May ??, 2009)
+=item B<Version 2.8.0> (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<Version 2.7.3> (February 10, 2009)