From: wambacher@posteo.de
To: pgsql-admin@lists.postgresql.org
Subject: finding queries doing sequential search
Date: Fri, 14 Dec 2018 16:39:30 +0100
Message-ID: <6dd2fe53-a93d-a2ca-05aa-325921333dac@posteo.de> (raw)
Hi,
i have a very big table (PostGIS OpenStreetMap data, but that does not
mapper) with about 380 million records and a size of 275 GB + Indices.
Permanently updated and growing.
Of course i enabled autovacuum.
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.
Is there a way/trick do this?
Regards
walter
--
My projects:
Admin Boundaries of the World <https://wambachers-osm.website/boundaries;
Missing Boundaries
<https://wambachers-osm.website/index.php/projekte/internationale-administrative-grenzen/missing-boun...;
Emergency Map <https://wambachers-osm.website/emergency;
Postal Code Map (Germany only) <https://wambachers-osm.website/plz;
Fools (QA for zipcodes in Germany) <https://wambachers-osm.website/fools;
Postcode Boundaries of Germany <https://wambachers-osm.website/pcoundaries;
Attachments:seq_scans.png (image/png, 50.7K) downloadview image
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: wambacher@posteo.de, pgsql-admin@lists.postgresql.org
Subject: Re: finding queries doing sequential search
In-Reply-To: <6dd2fe53-a93d-a2ca-05aa-325921333dac@posteo.de>
* 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