Re: WIP patch - INSERT-able log statements

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Guillaume Smet <guillaume(dot)smet(at)gmail(dot)com>, 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:34:23
Message-ID: 20070220043423.GJ28395@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane escribió:
> "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.)

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

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2007-02-20 04:49:07 Re: [PATCHES] WIP patch - INSERT-able log statements
Previous Message Tom Lane 2007-02-20 04:11:44 Re: WIP patch - INSERT-able log statements

Browse pgsql-patches by date

  From Date Subject
Next Message Greg Smith 2007-02-20 04:49:07 Re: [PATCHES] WIP patch - INSERT-able log statements
Previous Message Tom Lane 2007-02-20 04:11:44 Re: WIP patch - INSERT-able log statements