summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg2009-06-02 00:01:45 +0000
committerGreg2009-06-02 00:01:45 +0000
commit6f0332c0e106c65ca7c12d263385a4ff18fcfdb9 (patch)
tree02b9ae18c7302618b4d64a04d0a7d04da967222f /check_postgres.pl
parent215aee79b48162330531c42604e344e75321f25d (diff)
Regex tweak.
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 ed877fbc7..a1ca1f241 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4420,7 +4420,7 @@ sub check_same_schema {
. q{FROM pg_proc JOIN pg_namespace n ON (n.oid = pronamespace)};
$info = run_command($SQL, { dbnumber => $x } );
for $db (@{$info->{db}}) {
- while ($db->{slurp} =~ /^\s*(.+?)\s+\| (.+?)\s+\| (.+?)\s+\| (.+?)\s+/gmo) {
+ while ($db->{slurp} =~ /^\s*(.+?)\s+\| (.+?)\s+\| (.+?)\s+\| (.+?)\s*/gmo) {
my ($schema,$name,$args,$md5) = ($1,$2,$3,$4);
$args =~ s/(\d+)/$thing{$x}{type}{$1}/g;
$args =~ s/^\s*(.*)\s*$/($1)/;