Re: Disabling libpq clients stderr output from backend

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Oberpriller, Wade D(dot)" <oberpwd(at)nsc-msg01(dot)network(dot)com>
Cc: "PostgreSQL General Help (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Disabling libpq clients stderr output from backend
Date: 2002-04-19 18:00:15
Message-ID: 1908.1019239215@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Oberpriller, Wade D." <oberpwd(at)nsc-msg01(dot)network(dot)com> writes:
> I have a client C++ program that is built on top of libpq. Whenever I issue
> an SQL query that executes a stored procedure that drops tables or creates
> tables, I get the NOTICE: messages to appear on the stderr output of my
> client propram. Can I turn this off, or redirect it to /dev/null somehow?

See SetNoticeProcessor (sp?). Plug in a do-nothing processor and you're
set.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yury Don 2002-04-19 18:15:54 Re: pltcl bug in 7.2?
Previous Message Oberpriller, Wade D. 2002-04-19 17:56:00 Disabling libpq clients stderr output from backend