From: Tom Lane <tgl@sss.pgh.pa.us>
To: wambacher@posteo.de
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: finding queries doing sequential search
Date: Fri, 14 Dec 2018 10:59:53 -0500
Message-ID: <11933.1544803193@sss.pgh.pa.us> (raw)
In-Reply-To: <6dd2fe53-a93d-a2ca-05aa-325921333dac@posteo.de>
References: <6dd2fe53-a93d-a2ca-05aa-325921333dac@posteo.de>
wambacher@posteo.de writes:
> The log shows me 8.2 Mio index scans (iscan), which is fine, and right
> now 424 sequential scans (sscan) for planet_osm_polygon. see attached image.
> I want to locate the query doing this stuff but EXPLAIN won't help
> because most querys are dynamicly created.
auto_explain might help. Or you could just log_min_duration_statement
to capture queries that are running long.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, wambacher@posteo.de, pgsql-admin@lists.postgresql.org
Subject: Re: finding queries doing sequential search
In-Reply-To: <11933.1544803193@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox