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 1nvMwr-0002Zt-GO for pgsql-general@arkaria.postgresql.org; Sun, 29 May 2022 17:43:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nvMwq-0007eO-A1 for pgsql-general@arkaria.postgresql.org; Sun, 29 May 2022 17:43:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvMwp-0007eF-Vc for pgsql-general@lists.postgresql.org; Sun, 29 May 2022 17:43:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvMwn-00045g-FB for pgsql-general@lists.postgresql.org; Sun, 29 May 2022 17:43:26 +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 24THhH6f3498460; Sun, 29 May 2022 13:43:17 -0400 From: Tom Lane To: Alastair McKinley cc: Andrew Dunstan , "pgsql-general@lists.postgresql.org" Subject: Re: Function definition regression in 15beta1 when specific parameter name (string) is used In-reply-to: References: Comments: In-reply-to Alastair McKinley message dated "Sun, 29 May 2022 16:46:22 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3498458.1653846197.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 29 May 2022 13:43:17 -0400 Message-ID: <3498459.1653846197@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alastair McKinley writes: > The following function definition fails in 15beta1 (ok in 14.3): > create or replace function regexp_match_test(string text,pattern tex= t) returns text[] as > $$ > select regexp_match(string,pattern); > $$ language sql; Commit 1a36bc9db seems to have defined STRING as a type_func_name_keyword, which strikes me as a pretty horrible trampling on user namespace. That means you can't have tables or columns named "string" anymore either, and I'll bet money the latter restriction is going to bite a lot of people. In a quick experiment here, I don't see any bison complaints if I back it down to unreserved_keyword, so this seems easily fixable. I wonder though if we don't need more review of patches that add partially- or fully-reserved keywords. regards, tom lane