Re: Increasing the length of

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: David Parker <dparker(at)tazznetworks(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Increasing the length of
Date: 2004-12-01 19:10:31
Message-ID: 200412011910.iB1JAV001066@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Treat wrote:
> On Wed, 2004-12-01 at 11:47, Bruce Momjian wrote:
> > David Parker wrote:
> > > How difficult would it be to make the combination
> > >
> > > log_statement = all
> > > log_duration = true
> > >
> > > just put the duration on the same line as the statement? Then
> > > log_min_duration_statement could be used to
> > > do the desired log-at-threshold behavior, which certainly seems
> > > valuable. You'd need a way to visually/scriptually (?) distinguish those
> > > log records, though, I guess.
> > >
> > > Note that my original post on this was more of a question than an
> > > objection - it's entirely possible to sed around having duration and
> > > statement on separate lines - I just wanted clarification. Having them
> > > on the same line IS handy, however....
> >
> > Many people want the statement printed when it starts (for real-time
> > server monitoring), not when it finishes, meaning we don't know the
> > duration at start time.
> >
>
> I think what David is asking for is log_statement and log_duration to
> print on the same line at query completion time. We could then change
> log_min_duration_statement to print DurationExceeded <duration> rather
> than just Duration <time> like it does now, also on the same line, but
> with a way to differentiate the two.

I see. That just seems too confusing to me.

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-12-01 20:54:11 Re: nodeAgg perf tweak
Previous Message Michelle Konzack 2004-12-01 18:38:26 Re: USENET vs Mailing Lists Poll ...