Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.
authorTom Lane
Tue, 9 Aug 2016 17:39:24 +0000 (13:39 -0400)
committerTom Lane
Tue, 9 Aug 2016 17:39:24 +0000 (13:39 -0400)
Per discussion with David Johnston.

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

index 865d52b5919ee0367ff481aaaaedfb86746c9bea..0388d06b959d91bca7cfaedea958174b239f5ed0 100644 (file)
@@ -259,8 +259,9 @@ ALTER FUNCTION name ( [ [ 
         setting is removed, so that the function executes with the value
         present in its environment.  Use RESET
         ALL to clear all function-local settings.
-        SET FROM CURRENT saves the session's current value of
-        the parameter as the value to be applied when the function is entered.
+        SET FROM CURRENT saves the value of the parameter that
+        is current when ALTER FUNCTION is executed as the value
+        to be applied when the function is entered.
        
 
        
index abb0d33031e37b35138a78741e100abc90ef5920..8108a4309511b878b4de5c153fda903f1703443c 100644 (file)
@@ -486,8 +486,9 @@ CREATE [ OR REPLACE ] FUNCTION
        The 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.
-       SET FROM CURRENT saves the session's current value of
-       the parameter as the value to be applied when the function is entered.
+       SET FROM CURRENT saves the value of the parameter that
+       is current when CREATE FUNCTION is executed as the value
+       to be applied when the function is entered.