pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud L. <arnaud.listes@codata.eu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Bad estimates on GIN bigint[] index
Date: Fri, 6 Sep 2019 12:26:03 +0200
Message-ID: <f1461562-d347-0168-6ec9-670864b6eb1a@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:
>>    ->  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.


Sorry to up this thread, but is there anything I can do to help the 
planner in this particular case ?
REINDEXing did not help, nor did ANALYZEing with different STATISTICS 
target for this specific column.


Regards
--
Arnaud





Message-ID: <f1461562-d347-0168-6ec9-670864b6eb1a@codata.eu>
Permalink:  ../f1461562-d347-0168-6ec9-670864b6eb1a@codata.eu/
Also on:    postgresql.org/message-id/f1461562-d347-0168-6ec9-670864b6eb1a@codata.eu

 · 

reply

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: Bad estimates on GIN bigint[] index
  In-Reply-To: <f1461562-d347-0168-6ec9-670864b6eb1a@codata.eu>
  References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu> <23865.1567518191@sss.pgh.pa.us> <f1461562-d347-0168-6ec9-670864b6eb1a@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