From ea3199aed33316aa2d2fed6892169e809378c36e Mon Sep 17 00:00:00 2001 From: FST <130074769+F-S-T@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:50:28 +0100 Subject: [PATCH] Disable .psqlrc when fetching list of databases (alldb option) --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index d88cad7..1813f55 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2126,7 +2126,7 @@ sub msg_en { if ($opt{port}[0]){ $pg_port = $opt{port}[0]; } - my $psql_output = join(",", map /^([\w|-]+?)\|/, qx{$PSQL -A -l -t -p $pg_port }); + my $psql_output = join(",", map /^([\w|-]+?)\|/, qx{$PSQL -A -l -t -X -p $pg_port }); my $pg_db; # optionally exclude or include each db my @psql_output_array = split(/,/, $psql_output);