Re: General DB Tuning

Поиск
Список
Период
Сортировка
От Brent Henry
Тема Re: General DB Tuning
Дата
Msg-id 20050713013630.18625.qmail@web33911.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: General DB Tuning  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: General DB Tuning  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Re: General DB Tuning  (Tom Arthurs <tarthurs@jobflash.com>)
Список 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@familyhealth.com.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


В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Arthurs
Дата:
Сообщение: Re: General DB Tuning
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: General DB Tuning