Logging seq scans

Поиск
Список
Период
Сортировка
От Guido Neitzer
Тема Logging seq scans
Дата
Msg-id AF158061-88EA-42A7-8F3A-6D1B6233E453@pharmaline.de
обсуждение исходный текст
Ответы Re: Logging seq scans  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: Logging seq scans  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Hi.

Is there a way to set up logging in a way that I can see queries
which trigger seq scans? Or to log queries "taking longer than xx ms"?

Background is, that it is nearly impossible to tell, which queries
are used in my applications as they are mostly generated by the
frameworks. Yesterday I found, that one of the more often used
queries has not used an existing index and I had to use another index
for it. Nobody complained about the performance but nevertheless the
query took about 1000ms and therefore slowed down the rest of the
server ...

cug

--
PharmaLine, Essen, GERMANY
Software and Database Development



Вложения

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

Предыдущее
От: Frank Church
Дата:
Сообщение: Re: REPOST: How to determine the table a query or a views columns come from?
Следующее
От: Guido Neitzer
Дата:
Сообщение: Question about index usage