From: Arnaud L. <arnaud.listes@codata.eu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Slow statement using parallelism after 9.6>11 upgrade
Date: Tue, 3 Sep 2019 16:06:06 +0200
Message-ID: <938dfead-0605-8f91-8f21-8871f44bd6ff@codata.eu> (raw)
In-Reply-To: <23865.1567518191@sss.pgh.pa.us>
References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu>
<23865.1567518191@sss.pgh.pa.us>
Le 03/09/2019 à 15:43, Tom Lane a écrit :
> "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:
You mean after the upgrade process ? Yes I have.
I've juste re-run "ANALYZE table" to rule this out, estimates are the same.
Maybe some statistic target problem ? Estimated number of rows is
284.196.352
Also, this is a GIN index on a bigint[] column.
I've setup parallel_tuple_cost to 1.0 parallel_setup_cost to 5000.0 for
the time being which solves this specific problem. These value don't
look very sensible though, they are very high compared to the default ones.
Cheers
--
Arnaud
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: arnaud.listes@codata.eu, tgl@sss.pgh.pa.us
Subject: Re: Slow statement using parallelism after 9.6>11 upgrade
In-Reply-To: <938dfead-0605-8f91-8f21-8871f44bd6ff@codata.eu>
References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu> <23865.1567518191@sss.pgh.pa.us> <938dfead-0605-8f91-8f21-8871f44bd6ff@codata.eu>
* 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