Re: WIP patch - INSERT-able log statements - Mailing list pgsql-patches

From Alvaro Herrera
Subject Re: WIP patch - INSERT-able log statements
Date
Msg-id 20070220043423.GJ28395@alvh.no-ip.org
Whole thread Raw
In response to Re: WIP patch - INSERT-able log statements  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane escribió:
> "Guillaume Smet" <guillaume.smet@gmail.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.)

So lets fix stderr by having a true per-line prefix?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP patch - INSERT-able log statements
Next
From: Tom Lane
Date:
Subject: Re: [pgsql-patches] Patch to avoid gprofprofilingoverwrites