Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKk4R-0004za-Qp for pgsql-general@arkaria.postgresql.org; Sun, 07 Aug 2022 17:28:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oKk4Q-00061I-Mx for pgsql-general@arkaria.postgresql.org; Sun, 07 Aug 2022 17:28:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKk4Q-000618-CT for pgsql-general@lists.postgresql.org; Sun, 07 Aug 2022 17:28:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKk4L-0002Vs-O9 for pgsql-general@postgresql.org; Sun, 07 Aug 2022 17:28:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 277HS2nS257489; Sun, 7 Aug 2022 13:28:02 -0400 From: Tom Lane To: Tomas Vondra cc: Danny Shemesh , pgsql-general@postgresql.org Subject: Re: Expr. extended stats are skipped with equality operator In-reply-to: <0936f584-a910-1d49-6806-dd0a8303c3e6@enterprisedb.com> References: <0936f584-a910-1d49-6806-dd0a8303c3e6@enterprisedb.com> Comments: In-reply-to Tomas Vondra message dated "Sun, 07 Aug 2022 19:23:52 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <257487.1659893282.1@sss.pgh.pa.us> Date: Sun, 07 Aug 2022 13:28:02 -0400 Message-ID: <257488.1659893282@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > Yeah, this seems like a clear bug - we should not fail queries like > this. It's a sign statext_is_compatible_clause() and the MCV code > disagrees which clauses are compatible. Indeed. I attempted to fix that at e33ae53dd. regards, tom lane