Re: fix log_min_duration_statement logic error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: fix log_min_duration_statement logic error
Date: 2003-10-04 19:43:34
Message-ID: 21233.1065296614@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Tom Lane wrote:
>> I would prefer to see the log entries look like
>>
>> LOG: query: select * from pg_class;
>> LOG: duration: nn.nnn msec

> The problem with two lines is that another log message could get between
> them.

That was true already with log_statement and log_duration as separate
operations. People use log_pid to deal with it.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-10-04 19:58:35 Re: [HACKERS] initdb
Previous Message Bruce Momjian 2003-10-04 19:30:41 Re: fix log_min_duration_statement logic error