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 1lW5Kt-0000oS-2E for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Apr 2021 22:47:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lW5Kq-0006BA-B9 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Apr 2021 22:47:12 +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 1lW5Kq-0006A1-4A for pgsql-hackers@lists.postgresql.org; Mon, 12 Apr 2021 22:47:12 +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 1lW5Kn-0005Nw-0q for pgsql-hackers@lists.postgresql.org; Mon, 12 Apr 2021 22:47:11 +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 13CMl4lC3048707; Mon, 12 Apr 2021 18:47:04 -0400 From: Tom Lane To: Thomas Munro cc: Julien Rouhaud , PostgreSQL Hackers Subject: Re: Curious test case added by collation version tracking patch In-reply-to: References: <3044030.1618261159@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 13 Apr 2021 10:08:07 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3048705.1618267624.1@sss.pgh.pa.us> Date: Mon, 12 Apr 2021 18:47:04 -0400 Message-ID: <3048706.1618267624@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Tue, Apr 13, 2021 at 8:59 AM Tom Lane wrote: >> The reason I ask is that this case started failing after I fixed >> a parse_coerce.c bug that allowed a CollateExpr node to survive >> in this WHERE expression, which by rights it should not. I'm >> inclined to think that the test case is wrong and should be removed, >> but maybe there's some reason to have a variant of it. > Indeed, this doesn't do anything useful, other than prove that we > record a collation dependency where it is (uselessly) allowed in an > expression. Since you're not going to allow that anymore, it should > be dropped. OK, I'll go clean it up. Thanks! regards, tom lane