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

From Magnus Hagander
Subject Re: Adding error message "source"
Date
Msg-id 9837222c0908100614k3009fdf1y250e90bc7dfa2273@mail.gmail.com
Whole thread Raw
In response to Re: Adding error message "source"  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Adding error message "source"  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Thu, Aug 6, 2009 at 19:04, Peter Eisentraut<peter_e@gmx.net> wrote:
> On Thursday 06 August 2009 17:33:40 Tom Lane wrote:
>> I don't think there'd be much logical difficulty in having an output
>> field (ie, CSV column or log_line_prefix escape) that represents a
>> classification of the PID, say as "postmaster, backend, AV worker,
>> AV launcher, bgwriter, ...".  It would only require changing things
>> in one place, whereas your original proposal seemed mighty open-ended.
>
> You might be able to achieve that if you use the %q escape and put something
> after the %q that you can search for.

You could do part of it, but you could still not differ them from each
other. And really, it seems very much like a kludge to me. I'd rather
have a "proper field" for it.


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: machine-readable explain output v4
Next
From: Peter Eisentraut
Date:
Subject: Re: Alpha releases: How to tag