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 1iGNUn-0007yH-5j for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 13:19:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGNUl-0006ud-W3 for pgsql-general@arkaria.postgresql.org; Fri, 04 Oct 2019 13:19:43 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGNUl-0006uS-M8 for pgsql-general@lists.postgresql.org; Fri, 04 Oct 2019 13:19:43 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGNUi-0007FR-EM for pgsql-general@postgresql.org; Fri, 04 Oct 2019 13:19:43 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id CA49417A8E51A for ; Fri, 4 Oct 2019 06:19:36 -0700 (MST) Date: Fri, 4 Oct 2019 06:19:36 -0700 (MST) From: greigwise To: pgsql-general@postgresql.org Message-ID: <1570195176826-0.post@n3.nabble.com> In-Reply-To: References: <1570137723639-0.post@n3.nabble.com> Subject: Re: BitmapAnd on correlated column? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >Extended statistics will tell PostgreSQL that it is very unlikely >that the first condition will contribute significantly, but that >is no proof that the condition can be omitted, so the optimizer >cannot just skip the condition. Granted it cannot skip the condition, but that doesn't mean that it has to use that second index. It's doing a recheck on the conditions anyway, right? Thanks. Greig -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html