[check_postgres] [Check_postgres-commit] [commit 2/2] Thanks a lot, Postgres. Now featuring whitespace in psql output that has never been there before.

Christoph Berg cb at df7cb.de
Sat Nov 1 15:39:02 UTC 2014


Re: check_postgres at bucardo.org 2014-10-30 <1414703397-28500-2-git-send-email-check_postgres at bucardo.org>
> Committed by Greg Sabino Mullane <greg at endpoint.com>
> 
> Subject: [commit 2/2] Thanks a lot, Postgres. Now featuring whitespace in psql
> output that has never been there before.
> 
> ---
>  check_postgres.pl | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/check_postgres.pl b/check_postgres.pl
> index a48e36f..634fffe 100755
> --- a/check_postgres.pl
> +++ b/check_postgres.pl
> @@ -2459,7 +2459,7 @@ sub run_command {
>                      $lnum++;
>                      next;
>                  }
> -                if ($line =~ /^([\?\w]+)\s+\| (.*)/) {
> +                if ($line =~ /^ ?([\?\w]+)\s+\| (.*)/) {

I believe that's only in 9.4beta2; beta3 has already been fixed.

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/


More information about the Check_postgres mailing list