Re: General DB Tuning

From: Brent Henry <bh_pgperf(at)yahoo(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Dennis <dennis(at)works4me(dot)com>, Tom Arthurs <tarthurs(at)jobflash(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: General DB Tuning
Date: 2005-07-13 01:36:30
Message-ID: 20050713013630.18625.qmail@web33911.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

We are running Postgres 8.0.2 with the 8.0.2 jdbc
driver. And yes we are using prepared statements.
I've spent hours trying to get the
'log_min_duration_statement' and 'log_duration'
options to work with no luck. I never get any
duration from the statement. I also never see 'begin'
or 'commit' in the log so I can't tell how long my
batch commands are taking to commit to the DB.

Is there a different kind of 'prepared' statements
that we should be using in the driver to get logging
to work properly? What is the 'new' protocol?

Tom, what version are you using? Are you using
prepared statements in JDBC?

-Brent

--- Christopher Kings-Lynne
<chriskl(at)familyhealth(dot)com(dot)au> wrote:

> >> we are using jdbc -- the
> "log_min_duration_statement = 3000 "
> >> statement works fine for me. Looks like there's
> no other work around
> >> for the bug(?). Not sure since I have no
> interest in logging a
> >> million statements a day, I only want to see the
> poorly performing hits.
> >
> > Doesn't it depend on what jdbc driver you are
> using?
>
> It depends if he's using new-protocol prepared
> queries which don't get
> logged properly. Wasn't that fixed for 8.1 or
> something?
>
> Chris
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>


____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-07-13 01:52:20 Re: General DB Tuning
Previous Message Tom Arthurs 2005-07-13 01:30:14 Re: General DB Tuning