Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group