From: Tom Lane <tgl@sss.pgh.pa.us>
To: arnaud.listes@codata.eu
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Slow statement using parallelism after 9.6>11 upgrade
Date: Tue, 03 Sep 2019 09:43:11 -0400
Message-ID: <23865.1567518191@sss.pgh.pa.us> (raw)
In-Reply-To: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu>
References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu>
"Arnaud L." <arnaud.listes@codata.eu> writes:
> We have upgraded our database from 9.6 to 11 (and updated PostGIS from
> 2.3 to 2.5 as well).
> ...
Have you re-ANALYZEd the database? The problem with this query
seems to be the spectacularly awful rowcount estimate here:
> -> Bitmap Index Scan on planet_osm_ways_nodes_idx
> (cost=0.00..11190.36 rows=1420982 width=0) (actual time=0.268..0.268
> rows=1 loops=1)
> Index Cond: (nodes && '{1}'::bigint[])
The planner should be able to do better than that, given up-to-date
statistics on the "nodes" column.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, arnaud.listes@codata.eu
Subject: Re: Slow statement using parallelism after 9.6>11 upgrade
In-Reply-To: <23865.1567518191@sss.pgh.pa.us>
References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu> <23865.1567518191@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