Re: fix log_min_duration_statement logic error

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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 00:47:03
Message-ID: Pine.LNX.4.44.0310040243420.8489-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian writes:

> > I think there should be just one "duration: nnn" log entry, printed if
> > either condition holds.
>
> Done.

Now, if I have log_statement and log_duration on, it logs each statement
twice. The documentation says this:

log_duration (boolean)

Causes the duration of every completed statement to be logged. To use
this option, enable log_statement and log_pid so you can link the
statement to the duration using the process ID.

This needs more thought.

Also, please put units on all numbers.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2003-10-04 01:28:38 more spanish updates
Previous Message Alvaro Herrera 2003-10-04 00:30:27 backend es.po