Re: WIP patch - INSERT-able log statements

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
Cc: "Greg Smith" <gsmith(at)gregsmith(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: WIP patch - INSERT-able log statements
Date: 2007-02-20 04:11:44
Message-ID: 19495.1171944704@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com> writes:
> (each query is run on a different backend). With stderr you don't have
> sufficient information to know the query you should append the text
> to. Syslog adds useful context information (pid, command line, command
> number) which allows you to guarantee the consistency.
> It's a real problem for us and that's why I don't recommend using
> stderr when you use pgFouine.

Of course, the other side of that coin is that syslog is known to drop
messages altogether under sufficient load. (At least on some platforms;
dunno about yours.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-20 04:34:23 Re: WIP patch - INSERT-able log statements
Previous Message Tom Lane 2007-02-20 04:09:40 Re: [PATCHES] WIP patch - INSERT-able log statements

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-20 04:34:23 Re: WIP patch - INSERT-able log statements
Previous Message Tom Lane 2007-02-20 04:09:40 Re: [PATCHES] WIP patch - INSERT-able log statements