Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6BRa-0007Tv-OZ for pgsql-general@arkaria.postgresql.org; Fri, 06 Sep 2019 10:26:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i6BRX-0000WU-4w for pgsql-general@arkaria.postgresql.org; Fri, 06 Sep 2019 10:26:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i6BRW-0000Ek-Lc for pgsql-general@lists.postgresql.org; Fri, 06 Sep 2019 10:26:14 +0000 Received: from serveurmail01.codata.be ([82.146.123.190]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1i6BRP-0002UB-FM for pgsql-general@lists.postgresql.org; Fri, 06 Sep 2019 10:26:13 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 45937900DE; Fri, 6 Sep 2019 12:26:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at serveurmail01.codata.be Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ARpO4ePduYkN; Fri, 6 Sep 2019 12:26:03 +0200 (CEST) Received: from [10.0.0.100] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTPSA id AB3A9900D7; Fri, 6 Sep 2019 12:26:03 +0200 (CEST) From: "Arnaud L." Subject: Bad estimates on GIN bigint[] index Reply-To: arnaud.listes@codata.eu To: Tom Lane Cc: pgsql-general References: <872bffe7-82d0-86db-e3d6-2e20b1a72c4b@codata.eu> <23865.1567518191@sss.pgh.pa.us> Message-ID: Date: Fri, 6 Sep 2019 12:26:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <23865.1567518191@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le 03/09/2019 à 15:43, Tom Lane a écrit : > "Arnaud L." 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