Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtsR2-00ENaV-5T for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Oct 2023 16:33:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qtsQz-004F9t-Jg for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Oct 2023 16:33:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtsQz-004F9l-9t for pgsql-hackers@lists.postgresql.org; Fri, 20 Oct 2023 16:33:13 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtsQv-001kuT-UW for pgsql-hackers@lists.postgresql.org; Fri, 20 Oct 2023 16:33:13 +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 39KGX3gQ3891596; Fri, 20 Oct 2023 12:33:03 -0400 From: Tom Lane To: jian he cc: Tommy Pavlicek , =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= , pgsql-hackers@lists.postgresql.org, Tomas Vondra Subject: Re: [PATCH] Extend ALTER OPERATOR to support adding commutator, negator, hashes, and merges In-reply-to: References: <4077062.1687452468@sss.pgh.pa.us> <87r0q3qvxd.fsf@wibble.ilmari.org> <4082750.1687455374@sss.pgh.pa.us> <15382.1687519306@sss.pgh.pa.us> <1092363.1695932314@sss.pgh.pa.us> <447166.1696969927@sss.pgh.pa.us> Comments: In-reply-to jian he message dated "Thu, 12 Oct 2023 11:53:53 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3891594.1697819583.1@sss.pgh.pa.us> Date: Fri, 20 Oct 2023 12:33:03 -0400 Message-ID: <3891595.1697819583@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk jian he writes: > errmsg("operator attribute \"negator\" cannot be changed if it has > already been set"))); > I feel like the above message is not very helpful. I think it's okay to be concise about this as long as the operator we're referring to is the target of the ALTER. I agree that when we're complaining about some *other* operator, we'd better spell out which one we mean, and I made some changes to the patch to improve that. Pushed after a round of editorialization -- mostly cosmetic stuff, except for tweaking some error messages. I shortened the test cases a bit too, as I thought they were somewhat excessive to have as a permanent thing. regards, tom lane