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 1lg7Xc-00073T-0G for pgsql-hackers@arkaria.postgresql.org; Mon, 10 May 2021 15:09:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lg7Xa-0005CK-Vv for pgsql-hackers@arkaria.postgresql.org; Mon, 10 May 2021 15:09:50 +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 1lg7Xa-0005CC-OO for pgsql-hackers@lists.postgresql.org; Mon, 10 May 2021 15:09:50 +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 1lg7XY-0002aA-5t for pgsql-hackers@postgresql.org; Mon, 10 May 2021 15:09:50 +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 14AF9hou688710; Mon, 10 May 2021 11:09:43 -0400 From: Tom Lane To: Peter Eisentraut cc: Justin Pryzby , Noah Misch , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: SQL-standard function body In-reply-to: References: <1c11f1eb-f00c-43b7-799d-2d44132c02d7@2ndquadrant.com> <493812.1593541480@sss.pgh.pa.us> <494838.1593543098@sss.pgh.pa.us> <20210418185546.GC1500781@rfd.leadboat.com> <92408.1618772924@sss.pgh.pa.us> <20210418211505.GA7256@telsasoft.com> <142618.1618781618@sss.pgh.pa.us> <964466e9-6b6c-c0ae-6277-a44e80229299@enterprisedb.com> <2659727.1619540213@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Mon, 10 May 2021 16:41:58 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <688708.1620659383.1@sss.pgh.pa.us> Date: Mon, 10 May 2021 11:09:43 -0400 Message-ID: <688709.1620659383@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 27.04.21 18:16, Tom Lane wrote: >> That's kind of a lot of complication, and inefficiency, for a corner case >> that may never arise in practice. We've ignored the risk for default >> expressions, and AFAIR have yet to receive any field complaints about it. >> So maybe it's okay to do the same for SQL-style function bodies, at least >> for now. >>> Another option would be that we disallow this at creation time. >> Don't like that one much. The backend shouldn't be in the business >> of rejecting valid commands just because pg_dump might be unable >> to cope later. > Since this is listed as an open item, I want to clarify that I'm > currently not planning to work on this, based on this discussion. > Certainly something to look into sometime later, but it's not in my > plans right now. Right, I concur with moving it to the "won't fix" category. regards, tom lane