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 1sWh5r-00GmAi-JP for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2024 18:52:07 +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 1sWh5p-007kUE-UC for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2024 18:52:05 +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 1sWh5p-007kU6-KM for pgsql-hackers@lists.postgresql.org; Wed, 24 Jul 2024 18:52:05 +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 1sWh5n-001H3o-BJ for pgsql-hackers@lists.postgresql.org; Wed, 24 Jul 2024 18:52:05 +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 46OIpmVY1258362; Wed, 24 Jul 2024 14:51:48 -0400 From: Tom Lane To: jian he cc: Robert Haas , Peter Eisentraut , Dian Fay , Jim Nasby , PostgreSQL Hackers , Chapman Flack Subject: Re: add function argument names to regex* functions. In-reply-to: References: <0eb3a5d7-75d8-4da5-9c88-a93deccdaa03@gmail.com> <75129a34-14da-48aa-9906-42062fe78664@gmail.com> <1763682.1712090733@sss.pgh.pa.us> <3999490.1721339304@sss.pgh.pa.us> Comments: In-reply-to jian he message dated "Fri, 19 Jul 2024 13:51:39 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1258360.1721847108.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 24 Jul 2024 14:51:48 -0400 Message-ID: <1258361.1721847108@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk jian he writes: > On Fri, Jul 19, 2024 at 5:48 AM Tom Lane wrote: >> The larger issue is that contrib/citext offers versions of some of >> these functions that are meant to be drop-in replacements using >> citext input. Hence, we need to add the same parameter names to >> those functions, or they'll fail to replace some calls. > citext module, these functions: > regexp_match() > regexp_matches() > regexp_replace() > regexp_split_to_array() > regexp_split_to_table() > were created in contrib/citext/citext--1.4.sql, we can add the CREATE > OR REPLACE FUNCTION to 1.4.sql. > but to avoid unintended consequences I just add these to the newly > created file citext--1.6--1.7.sql, > to make a version bump. Yes. You *have to* do it like that, the shortcut is not an option, because without an extension update script there is no way to upgrade an existing installation to the new definition. Basically, once we ship a given release of an extension, that script is frozen in amber. I haven't heard any further bikeshedding on the argument names, so I'll move forward with committing this soon. regards, tom lane