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 1lW3eX-0006Mi-R4 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Apr 2021 20:59:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lW3eV-00047W-If for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Apr 2021 20:59:23 +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 1lW3eV-00047P-CG for pgsql-hackers@lists.postgresql.org; Mon, 12 Apr 2021 20:59:23 +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 1lW3eT-0004Qe-7x for pgsql-hackers@lists.postgresql.org; Mon, 12 Apr 2021 20:59:22 +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 13CKxJ4v3044031; Mon, 12 Apr 2021 16:59:19 -0400 From: Tom Lane To: Thomas Munro , Julien Rouhaud cc: pgsql-hackers@lists.postgresql.org Subject: Curious test case added by collation version tracking patch MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3044029.1618261159.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 12 Apr 2021 16:59:19 -0400 Message-ID: <3044030.1618261159@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I am wondering what was the intent of this test case added by commit 257836a75: CREATE INDEX icuidx16_mood ON collate_test(id) WHERE mood > 'ok' COLLATE "= fr-x-icu"; where "mood" is of an enum type, which surely does not respond to collations. 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. regards, tom lane