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 1p7NfC-0006xF-6K for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Dec 2022 21:27:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p7NfA-00040I-U1 for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Dec 2022 21:27:08 +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 1p7NfA-0003zE-Kf for pgsql-hackers@lists.postgresql.org; Mon, 19 Dec 2022 21:27:08 +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 1p7Nf8-0003Nk-7x for pgsql-hackers@lists.postgresql.org; Mon, 19 Dec 2022 21:27:07 +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 2BJLR0va1028326; Mon, 19 Dec 2022 16:27:00 -0500 From: Tom Lane To: Robert Haas cc: Andrew Dunstan , Amul Sul , Andres Freund , Alexander Korotkov , "David G. Johnston" , Corey Huinker , Alvaro Herrera , Joe Conway , Nikita Glukhov , PostgreSQL Hackers Subject: Re: Error-safe user functions In-reply-to: References: <4009543.1670422833@sss.pgh.pa.us> <6acddf68-7cb7-e9e7-a5a7-0abc87b3c55b@dunslane.net> <4111458.1670444176@sss.pgh.pa.us> <3211.1670452341@sss.pgh.pa.us> <20221207233518.sudtaxn6omtvpzvr@awork3.anarazel.de> <186288.1670517119@sss.pgh.pa.us> <20221208215836.3naznqmal2m32hzc@awork3.anarazel.de> <512551.1670540229@sss.pgh.pa.us> <20221209023351.l362yejerfoq3lfp@awork3.anarazel.de> <633426.1670554790@sss.pgh.pa.us> <01ff2051-806d-af2f-4f9e-793f7ba9a3f8@dunslane.net> <778369.1670598993@sss.pgh.pa.us> <5aaf7c66-9df9-21a9-1ff4-02c7848def52@dunslane.net> <3bac9841-fe07-713d-fa42-606c225567d6@dunslane.net> <1436686.1670701118@sss.pgh.pa.us> <2b1e7d56-6f37-bad9-9702-053ab55ecf60@dunslane.net> <1805344.1670779451@sss.pgh.pa.us> <1863335.1670783397@sss.pgh.pa.us> <3038346.1671060258@sss.p! gh.pa.us> <3564577.1671142683@sss.pgh.pa.us> <3819056.1671215496@sss.pgh.pa.us> <936418.1671468277@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 19 Dec 2022 13:25:19 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1028324.1671485220.1@sss.pgh.pa.us> Date: Mon, 19 Dec 2022 16:27:00 -0500 Message-ID: <1028325.1671485220@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Mon, Dec 19, 2022 at 11:44 AM Tom Lane wrote: >> ... I guess you didn't read my remarks upthread about regtypein. >> I do not want to try to make gram.y+scan.l non-error-throwing. > Huh, for some reason I'm not seeing an email about that. Do you have a link? In [1] I wrote >>> I'm a little concerned about the cost-benefit of fixing the reg* types. >>> The ones that accept type names actually use the core grammar to parse >>> those. Now, we probably could fix the grammar to be non-throwing, but >>> it'd be very invasive and I'm not sure about the performance impact. >>> It might be best to content ourselves with soft reporting of lookup >>> failures, as opposed to syntax problems. regards, tom lane [1] https://www.postgresql.org/message-id/1863335.1670783397%40sss.pgh.pa.us