Re: duration logging setting in 7.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ryszard Lach <siaco(at)autograf(dot)pl>
Cc: pgsql-performance(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: duration logging setting in 7.4
Date: 2003-11-21 00:17:01
Message-ID: 7948.1069373821@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ryszard Lach <siaco(at)autograf(dot)pl> writes:
> Nov 18 10:05:20 postgres[1348]: [318-1] LOG: duration: 0.297 ms statement:
> Nov 18 10:05:20 postgres[1311]: [5477-1] LOG: duration: 0.617 ms statement:
> Nov 18 10:05:20 postgres[1312]: [5134-1] LOG: duration: 0.477 ms statement:
> Nov 18 10:05:20 postgres[1349]: [318-1] LOG: duration: 0.215 ms statement:
> Nov 18 10:05:20 postgres[1313]: [5449-1] LOG: duration: 0.512 ms statement:
> Nov 18 10:05:20 postgres[1314]: [5534-1] LOG: duration: 0.420 ms statement:
> Nov 18 10:05:20 postgres[1330]: [772-1] LOG: duration: 1.386 ms statement: SELECT * FROM mytablemius WHERE id = 0;
> Nov 18 10:05:20 postgres[1315]: [5757-1] LOG: duration: 0.417 ms statement:
> Nov 18 10:05:20 postgres[1316]: [5885-1] LOG: duration: 0.315 ms statement:
> Nov 18 10:05:20 postgres[1317]: [5914-1] LOG: duration: 0.301 ms statement:
> Nov 18 10:05:20 postgres[1318]: [5990-1] LOG: duration: 0.293 ms statement:
> Nov 18 10:05:20 postgres[1319]: [6009-1] LOG: duration: 0.211 ms statement:
> Nov 18 10:05:20 postgres[1320]: [6039-1] LOG: duration: 0.188 ms statement:

Is it possible that you're sending a lot of queries that have an initial
newline in the text? I'd expect the first line of log output for such a
query to look as above.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matthew T. O'Connor 2003-11-21 00:40:15 Re: [HACKERS] More detail on settings for pgavd?
Previous Message Matthew T. O'Connor 2003-11-20 23:18:27 Re: [HACKERS] More detail on settings for pgavd?