On Tue, Aug 9, 2016 at 9:43 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "David G. Johnston" <david.g.johnston@gmail.com> writes:
> > Can we change the second sentence in the above quote to something like:=
=E2=80=8B
>
> > 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.
>
Fair enough...=E2=80=8Bso:
SET FROM CURRENT saves the
=E2=80=8B[creating] =E2=80=8B
session's current value of the parameter as the value to be applied when
the function is entered.
=E2=80=8BDavid J.
=E2=80=8B