| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Baron Schwartz <baron(at)xaprb(dot)com> |
| Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Logging statement/duration on the same line |
| Date: | 2010-02-10 18:15:05 |
| Message-ID: | 18540.1265825705@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Baron Schwartz <baron(at)xaprb(dot)com> writes:
> I'm writing a log parser front-end. I've seen some log samples that
> look like this, with the duration and statement on the same line:
> LOG: duration: 1.565 ms statement: SELECT * FROM users WHERE user_id='692'
> But in my 8.3.9 test installation, durations are always logged on a
> separate line. Is the sample above from a different version? Or is
> there a way to get this output with different configuration?
If the statement text was already printed due to log_statement,
duration logging doesn't repeat it. So if you prefer that type of
display, turn off log_statement and instead set
log_min_duration_statement = 0 to log everything via duration logging.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Ross | 2010-02-10 18:37:12 | Re: Memory Usage and OpenBSD |
| Previous Message | hubert depesz lubaczewski | 2010-02-10 18:05:32 | Re: Logging statement/duration on the same line |