Re: Logging queries using sequential scans

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Ivan Voras <ivoras(at)gmail(dot)com>
Cc: postgres performance list <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Logging queries using sequential scans
Date: 2016-08-10 11:39:17
Message-ID: CAFj8pRAqC+pSBKjWr1z4xgTjYg-E-wcmiFUUnMurPqbuv2ic9g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi

2016-08-10 13:13 GMT+02:00 Ivan Voras <ivoras(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Claudio Freire 2016-08-10 18:10:34 Re: what's the slowest part in the SQL
Previous Message Ivan Voras 2016-08-10 11:13:48 Logging queries using sequential scans