Logging seq scans - Mailing list pgsql-general

From Guido Neitzer
Subject Logging seq scans
Date
Msg-id AF158061-88EA-42A7-8F3A-6D1B6233E453@pharmaline.de
Whole thread Raw
Responses Re: Logging seq scans  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: Logging seq scans  (Richard Huxton <dev@archonet.com>)
List 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



Attachment

pgsql-general by date:

Previous
From: Frank Church
Date:
Subject: Re: REPOST: How to determine the table a query or a views columns come from?
Next
From: Guido Neitzer
Date:
Subject: Question about index usage