From: Greg Date: Fri, 29 May 2009 00:52:37 +0000 (-0400) Subject: Typos, move same_schema msgs to French translation section. X-Git-Tag: 2.9.0~3 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b1090c82524dbbd51bd3db5ef5f3d2872ebdcf20;p=check_postgres.git Typos, move same_schema msgs to French translation section. --- diff --git a/check_postgres.pl b/check_postgres.pl index be384d5b6..2ce75066c 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -416,6 +416,8 @@ our %msg = ( 'runtime-badmrtg' => q{queryname invalide ?}, 'runtime-badname' => q{Option invalide pour queryname option : doit être le nom d'une vue}, 'runtime-msg' => q{durée d'exécution de la requête : $1 secondes}, +'same-matched' => q{Both databases have identical items}, +'same-failed' => q{Databases were different. Items not matched: $1}, 'seq-die' => q{N'a pas pu récupérer d'informations sur la séquence $1}, 'seq-msg' => q{$1=$2% (appels restant=$3)}, 'seq-none' => q{Aucune sequences trouvée}, @@ -4267,7 +4269,7 @@ sub check_same_schema { } - my %thing; + my (%thing,$info); my $saved_db; for my $x (1..2) { @@ -4275,7 +4277,7 @@ sub check_same_schema { ## Get a list of all users if (! exists $filter{nousers}) { $SQL = 'SELECT usesysid, quote_ident(usename), usecreatedb, usesuper FROM pg_user'; - my $info = run_command($SQL, { dbnumber => $x } ); + $info = run_command($SQL, { dbnumber => $x } ); for $db (@{$info->{db}}) { while ($db->{slurp} =~ /^\s*(\d+)\s*\| (.+?)\s*\| ([t|f])\s*\| ([t|f]).*/gmo) { $thing{$x}{users}{$2} = { oid=>$1, createdb=>$3, superuser=>$4 }; @@ -4439,7 +4441,7 @@ sub check_same_schema { if (exists $filter{nouser_regex}) { for my $regex (@{$filter{nouser_regex}}) { - next USER if $name =~ /$regex/; + next USER if $user =~ /$regex/; } } @@ -4455,7 +4457,7 @@ sub check_same_schema { if (exists $filter{nouser_regex}) { for my $regex (@{$filter{nouser_regex}}) { - next USER if $name =~ /$regex/; + next USER if $user =~ /$regex/; } } @@ -6786,6 +6788,9 @@ The types of objects that can be filtered are: =back +A final filter option is "noposition", which prevents verification of the position of +columns within a table. + You must provide information on how to reach the second database by a connection parameter ending in the number 2, such as "--dbport2=5543"