Re: Logging queries using sequential scans - Mailing list pgsql-performance

From Pavel Stehule
Subject Re: Logging queries using sequential scans
Date
Msg-id CAFj8pRAqC+pSBKjWr1z4xgTjYg-E-wcmiFUUnMurPqbuv2ic9g@mail.gmail.com
Whole thread Raw
In response to Logging queries using sequential scans  (Ivan Voras <ivoras@gmail.com>)
List pgsql-performance
Hi

2016-08-10 13:13 GMT+02:00 Ivan Voras <ivoras@gmail.com>:
Hello,

Is it possible to log queries using sequential scans? Or possibly every query in a way which allows grepping for those with sequential scans?



you can log execution plan with auto_explain extension

 https://www.postgresql.org/docs/current/static/auto-explain.html

Then you can grep the queries with seq scan

Regards

Pavel

pgsql-performance by date:

Previous
From: Ivan Voras
Date:
Subject: Logging queries using sequential scans
Next
From: Claudio Freire
Date:
Subject: Re: what's the slowest part in the SQL