Perl Interface is printing NOTICE's on stderr - Mailing list pgsql-interfaces

From Bryan White
Subject Perl Interface is printing NOTICE's on stderr
Date
Msg-id 004301c01f24$31534b80$2dd260d1@arcamax.com
Whole thread Raw
Responses Re: Perl Interface is printing NOTICE's on stderr
List pgsql-interfaces
I have a function that I have added to the database that prints a client
sighon message to the backends log file.  It uses elog(NOTICE...) to write
to the log file.  I routinely call this funct when making a database
connection and it in combination with pids in the log file it is much easier
to correlate client programs with error messages.

My problem is that when the client side is a perl program using the Pg
module, the NOTICE messages are also printed on the client side.  I think
they are going to stderr.

Can someone suggest how to prevent this?

Bryan White




pgsql-interfaces by date:

Previous
From: Peter Mount
Date:
Subject: RE: How to get latest source code for JDBC
Next
From: Tom Lane
Date:
Subject: Re: Perl Interface is printing NOTICE's on stderr