"Bryan White" <bryan(at)arcamax(dot)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