Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5chJ-0003h1-2a for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Sep 2018 20:15:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5chG-0002mX-Rf for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Sep 2018 20:15:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5chG-0002mQ-L7 for pgsql-bugs@lists.postgresql.org; Thu, 27 Sep 2018 20:15:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5chE-0007E6-AA for pgsql-bugs@lists.postgresql.org; Thu, 27 Sep 2018 20:15:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8RKFWB8021041; Thu, 27 Sep 2018 16:15:32 -0400 From: Tom Lane To: Alex Pires de Camargo cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15408: Postgresql bad planning with multicolumn gist and search with empty results In-reply-to: References: <15408-18cb801b3a5b21a5@postgresql.org> <1818.1538057011@sss.pgh.pa.us> Comments: In-reply-to Alex Pires de Camargo message dated "Thu, 27 Sep 2018 16:54:55 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21039.1538079332.1@sss.pgh.pa.us> Date: Thu, 27 Sep 2018 16:15:32 -0400 Message-ID: <21040.1538079332@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alex Pires de Camargo writes: > In order to plan the best workarounds, this has a chance to be fixed in a > near future? I wouldn't recommend holding your breath. Someone would have to get interested in the problem and design/write/test a better cost model; and if/when that happens, we'd be unlikely to back-patch such a change into existing release branches. regards, tom lane