Re: Perl Interface is printing NOTICE's on stderr

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Perl Interface is printing NOTICE's on stderr
Дата
Msg-id 112.969045009@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Perl Interface is printing NOTICE's on stderr  ("Bryan White" <bryan@arcamax.com>)
Список pgsql-interfaces
"Bryan White" <bryan@arcamax.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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Bryan White"
Дата:
Сообщение: Perl Interface is printing NOTICE's on stderr
Следующее
От: "Panon, Paul-Andre"
Дата:
Сообщение: Win32 ODBC 6.5 driver and PostgreSQL 7.0 Foreign Key s