Re: fix log_min_duration_statement logic error - Mailing list pgsql-patches

From Tom Lane
Subject Re: fix log_min_duration_statement logic error
Date
Msg-id 21233.1065296614@sss.pgh.pa.us
Whole thread Raw
In response to Re: fix log_min_duration_statement logic error  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: fix log_min_duration_statement logic error
Re: fix log_min_duration_statement logic error
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: fix log_min_duration_statement logic error
Next
From: Peter Eisentraut
Date:
Subject: Re: more spanish updates