pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryan White <bryan@arcamax.com>
To: pgsql-interfaces@postgreSQL.org
Subject: Perl Interface is printing NOTICE's on stderr
Date: Fri, 15 Sep 2000 10:49:47 -0400
Message-ID: <004301c01f24$31534b80$2dd260d1@arcamax.com> (raw)

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





view thread (2+ messages)  latest in thread

Message-ID: <004301c01f24$31534b80$2dd260d1@arcamax.com>
Permalink:  ../004301c01f24$31534b80$2dd260d1@arcamax.com/
Also on:    postgresql.org/message-id/004301c01f24$31534b80$2dd260d1@arcamax.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: bryan@arcamax.com
  Subject: Re: Perl Interface is printing NOTICE's on stderr
  In-Reply-To: <004301c01f24$31534b80$2dd260d1@arcamax.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox