Re: 9.5 Create Function Set From Current taken at creation time? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 9.5 Create Function Set From Current taken at creation time?
Date
Msg-id 20203.1470750230@sss.pgh.pa.us
Whole thread Raw
In response to Re: 9.5 Create Function Set From Current taken at creation time?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: 9.5 Create Function Set From Current taken at creation time?
List pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Can we change the second sentence in the above quote to something like:​

> SET FROM CURRENT is a convenience expression to capture the result of
> current_setting('setting name') at the time of the function's creation. [if
> more than just convenience an example of when this is useful would be nice].

"Convenience" normally means that there's some other way to get the same
result.  I do not know of one, and I doubt we'd have introduced the
feature if there was.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: BUG #14228: replication slot catalog_xmin not cleared on slot reuse
Next
From: nicolas.david@verosoftware.com
Date:
Subject: BUG #14285: Chinese locale and windows