pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: SQL-standard function body
Date: Mon, 10 May 2021 16:41:58 +0200
Message-ID: <cfe5eac0-64ea-01d0-8ebc-94a16869490f@enterprisedb.com> (raw)
In-Reply-To: <2659727.1619540213@sss.pgh.pa.us>
References: <1c11f1eb-f00c-43b7-799d-2d44132c02d7@2ndquadrant.com>
	<CA+TgmoZ-FXU0iyevFETN0sGYw0RKTSCFxKONGE+2nVJEM5_8OQ@mail.gmail.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>

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.





view thread (90+ messages)  latest in thread

Message-ID: <cfe5eac0-64ea-01d0-8ebc-94a16869490f@enterprisedb.com>
Permalink:  ../cfe5eac0-64ea-01d0-8ebc-94a16869490f@enterprisedb.com/
Also on:    postgresql.org/message-id/cfe5eac0-64ea-01d0-8ebc-94a16869490f@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, tgl@sss.pgh.pa.us, pryzby@telsasoft.com, noah@leadboat.com, robertmhaas@gmail.com
  Subject: Re: SQL-standard function body
  In-Reply-To: <cfe5eac0-64ea-01d0-8ebc-94a16869490f@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox