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

From Tom Lane
Subject Re: Perl Interface is printing NOTICE's on stderr
Date
Msg-id 112.969045009@sss.pgh.pa.us
Whole thread Raw
In response to Perl Interface is printing NOTICE's on stderr  ("Bryan White" <bryan@arcamax.com>)
List pgsql-interfaces
"Bryan White" <bryan@arcamax.com> writes:
> 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.
> 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?

Try elog(DEBUG, ...) instead.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Bryan White"
Date:
Subject: Perl Interface is printing NOTICE's on stderr
Next
From: "Panon, Paul-Andre"
Date:
Subject: Win32 ODBC 6.5 driver and PostgreSQL 7.0 Foreign Key s