Re: Perl Interface is printing NOTICE's on stderr

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bryan White" <bryan(at)arcamax(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Perl Interface is printing NOTICE's on stderr
Date: 2000-09-15 19:10:09
Message-ID: 112.969045009@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"Bryan White" <bryan(at)arcamax(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Panon, Paul-Andre 2000-09-15 21:29:37 Win32 ODBC 6.5 driver and PostgreSQL 7.0 Foreign Key s
Previous Message Bryan White 2000-09-15 14:49:47 Perl Interface is printing NOTICE's on stderr