Perl Interface is printing NOTICE's on stderr

From: "Bryan White" <bryan(at)arcamax(dot)com>
To: <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Perl Interface is printing NOTICE's on stderr
Date: 2000-09-15 14:49:47
Message-ID: 004301c01f24$31534b80$2dd260d1@arcamax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2000-09-15 19:10:09 Re: Perl Interface is printing NOTICE's on stderr
Previous Message Peter Mount 2000-09-15 07:45:36 RE: How to get latest source code for JDBC