]> granicus.if.org Git - postgresql/commitdiff
Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Aug 2016 17:39:24 +0000 (13:39 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Aug 2016 17:40:03 +0000 (13:40 -0400)
Per discussion with David Johnston.

doc/src/sgml/ref/alter_function.sgml
doc/src/sgml/ref/create_function.sgml

index acb3e4fb93feda794fb7cdc963c0bda5ef50e882..c0f4c5ed68fe147893976151e4a7ee8bc837d68f 100644 (file)
@@ -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>
index 4a3bde5a49b048e78669704fc0914d015cc6a90b..ed69b891a3ebd4f930f47702e4df58f584761e50 100644 (file)
@@ -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>