Logging long queries: not all get logged

Поиск
Список
Период
Сортировка
От
Тема Logging long queries: not all get logged
Дата
Msg-id 20060510163425.1873.qmail@web50305.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Logging long queries: not all get logged
Список pgsql-admin
Hi,

I'm running PG 8.0.3.  I'm trying to catch slow queries, so I have this in postgresql.conf:

  # log queries that take more than 500 ms
  log_min_duration_statement = 500       # in ms

This does log _some_ queries that take > 500 ms to run.
However, it looks like not all queries get logged!

And I think I spotted a pattern:

Queries that DO get logged are:
  - queries run using psql
  - queries run by the java app that uses JDBC to talk to my PG database

Queries that do NOT get logged are:
  - queries run by the java app that uses Hibernate to talk to my PG database

If this is not the right place to ask about this (because there is java/Hibernate in the game), please let me know
whereI should ask. 

However, as far as I know, all of the above queries end up hitting the PG server the same way.  In other words, the PG
servershould see all these queries the same way -- there is no distinction between psql, JDBC, and Hibernate queries
fromthe point of view of PG server, so it's really bizzare that not all slow queries get logged. 

Has anyone seen this behaviour before?
Are there logging fixes in PG 8.1.3 that might address this issue?

Thanks,
Otis




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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: backups
Следующее
От: "mcelroy, tim"
Дата:
Сообщение: Re: backups