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: (view raw, whole thread or download thread mbox)
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
 . . .


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

Tim Ellis
Senior Database Architect
Gamet, Inc.

In response to


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-2017 The PostgreSQL Global Development Group