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 1p3TcL-0007GL-D5 for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 03:00:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p3TcJ-0002sZ-24 for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 03:00:03 +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 1p3TcI-0002qt-P7 for pgsql-hackers@lists.postgresql.org; Fri, 09 Dec 2022 03:00:02 +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 1p3TcD-00006Q-0E for pgsql-hackers@lists.postgresql.org; Fri, 09 Dec 2022 02:59:59 +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 2B92xoTm633427; Thu, 8 Dec 2022 21:59:50 -0500 From: Tom Lane To: Andres Freund cc: Alexander Korotkov , Robert Haas , Andrew Dunstan , "David G. Johnston" , Corey Huinker , Alvaro Herrera , Joe Conway , Nikita Glukhov , PostgreSQL Hackers Subject: Re: Error-safe user functions In-reply-to: <20221209023351.l362yejerfoq3lfp@awork3.anarazel.de> 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> Comments: In-reply-to Andres Freund message dated "Thu, 08 Dec 2022 18:33:51 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <633425.1670554790.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 08 Dec 2022 21:59:50 -0500 Message-ID: <633426.1670554790@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-12-08 17:57:09 -0500, Tom Lane wrote: >> Given that this additional experimentation didn't find any holes >> in the API design, I think this is pretty much ready to go. > One interesting area is timestamp / datetime related code. There's been = some > past efforts in the area, mostly in 5bc450629b3. See the RETURN_ERROR ma= cro in > formatting.c. > This is not directly about type input functions, but it looks to me that= the > functionality in the patchset should work. Yeah, I was planning to take a look at that before walking away from this stuff. (I'm sure not volunteering to convert ALL the input functions, but I'll do the datetime code.) You're right that formatting.c is doing stuff that's not exactly an input function, but I don't see why we can't apply the same API concepts to it. regards, tom lane