Re: Adding error message "source" - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Adding error message "source"
Date
Msg-id 9592.1249481040@sss.pgh.pa.us
Whole thread Raw
In response to Adding error message "source"  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> I'd like to add another field to messages called "source" (not wedded
> to the name). Initially, this could just be "user" and "internal", but
> I can see a use-case in the future for it to differ between for
> example "archiver" and "bgwriter" (it's certainly not unheard of that
> one would want to look at all output from the archiver, but ignore all
> other output).

I think you'd have great difficulty making this work reliably ---
there are lots of messages that could be emitted in multiple contexts.
Just about all of bufmgr.c, for instance.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: ECPG support for struct in INTO list
Next
From: Robert Haas
Date:
Subject: Re: status of ECPG patches?