Re: Disabling libpq clients stderr output from backend - Mailing list pgsql-general

From Tom Lane
Subject Re: Disabling libpq clients stderr output from backend
Date
Msg-id 1908.1019239215@sss.pgh.pa.us
Whole thread Raw
In response to Disabling libpq clients stderr output from backend  ("Oberpriller, Wade D." <oberpwd@nsc-msg01.network.com>)
List pgsql-general
"Oberpriller, Wade D." <oberpwd@nsc-msg01.network.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

pgsql-general by date:

Previous
From: "Oberpriller, Wade D."
Date:
Subject: Disabling libpq clients stderr output from backend
Next
From: Yury Don
Date:
Subject: Re: pltcl bug in 7.2?