Josh Berkus wrote:
> > OK, what if we change the documentaiton to be:
> > log_min_duration_statement = 1000 # Log all statements whose
> > # execution time exceeds the value, in
> > # milliseconds. -1 disables. Zero logs
> > # all statements and their durations.
> > I think you are confused because log_min_duration_statement is really
> > about _when_ to log (duration > ? ms), and what to log (the statement).
> No, I see what Christian is complaining about. If one sets
> log_statement="All", then all statements will be logged regardless of
> duration or the setting in log_min_duration_statement. So it should
> actually read:
> log_min_duration_statement = 1000 # Log all statements whose
> # execution time exceeds the value, in
> # milliseconds. -1 disables. This is in addition to
> # any statements logged according to
> I'm with Christian on wanting to change the behavior so that it does what
> the comments says it does currently, but I don't think we'll get that done
I have updated the documentation to be clearer that this is a complex
setting. The old docs were not very clear on this point.
Attached and applied.
I don't know we can ever combine this with log_statement and
log_duration because log_statement prints when the statement starts, not
when it completes.
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
In response to
pgsql-docs by date
|Next:||From: Halley Pacheco de Oliveira||Date: 2005-07-05 11:14:40|
|Previous:||From: Bruce Momjian||Date: 2005-07-01 13:24:47|
|Subject: Problem with on/off, true/false in postgresql.conf|