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:53 +0000 (13:39 -0400)
Per discussion with David Johnston.

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

index 013b6f8401ce6687c07309aceea8138fdd31c8c7..1c5346197d3ba40e6b1a67e2626f0790a276d4de 100644 (file)
@@ -236,8 +236,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 81278bb2f813fc614c68033e1bd03b7c9339e8c1..ab0f29881ed454de5c21732a212af0ef949d853b 100644 (file)
@@ -421,8 +421,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.