Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.

Per discussion with David Johnston.
REL9_1_STABLE
Tom Lane 9 years ago
parent cb5b88af7d
commit 99453178a5
  1. 5
      doc/src/sgml/ref/alter_function.sgml
  2. 5
      doc/src/sgml/ref/create_function.sgml

@ -225,8 +225,9 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
setting is removed, so that the function executes with the value
present in its environment. Use <literal>RESET
ALL</literal> to clear all function-local settings.
<literal>SET FROM CURRENT</> saves the session's current value of
the parameter as the value to be applied when the function is entered.
<literal>SET FROM CURRENT</> saves the value of the parameter that
is current when <command>ALTER FUNCTION</> is executed as the value
to be applied when the function is entered.
</para>
<para>

@ -399,8 +399,9 @@ CREATE [ OR REPLACE ] FUNCTION
The <literal>SET</> clause causes the specified configuration
parameter to be set to the specified value when the function is
entered, and then restored to its prior value when the function exits.
<literal>SET FROM CURRENT</> saves the session's current value of
the parameter as the value to be applied when the function is entered.
<literal>SET FROM CURRENT</> saves the value of the parameter that
is current when <command>CREATE FUNCTION</> is executed as the value
to be applied when the function is entered.
</para>
<para>

Loading…
Cancel
Save