Re: Silencing NOTICEs in Perl Pg

From: Tim Ellis <Tim(dot)Ellis(at)gamet(dot)com>
To: David Wheeler <david(at)wheeler(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Silencing NOTICEs in Perl Pg
Date: 2002-08-29 22:36:26
Message-ID: 20020829183626.65ad41d4.Tim.Ellis@gamet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> open STDERR, "| perl -e 'while (<>) { print unless /^NOTICE: / }'"
> or die "Cannot pipe STDERR: $!\n";

perl --help
. . .
-n assume 'while (<>) { ... }' loop around program
-p assume loop like -n but print line also, like sed
. . .

Thus,

perl -ne 'print unless /^NOTICE: /'

--
Tim Ellis
Senior Database Architect
Gamet, Inc.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2002-08-29 22:55:27 Re: Some timestamp problems
Previous Message Murthy Kambhampaty 2002-08-29 22:24:34 Re: Interpretting WAL debug.