postgres.git / summary / log / commit / refs
commit 86c40464b9cfe8de6135fdfd2b5b7b9bd6f6cb2b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Tue Aug 09 17:39:24 2016 +0000
First released in: 9.6.0, 9.1.24, 9.2.19, 9.3.15, 9.4.10, 9.5.5
Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.
Per discussion with David Johnston.
doc/src/sgml/ref/alter_function.sgml | 5 +++--
doc/src/sgml/ref/create_function.sgml | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/doc/src/sgml/ref/alter_function.sgml b/doc/src/sgml/ref/alter_function.sgml
index ba879eb1ea3..d75e0017f5e 100644
--- a/doc/src/sgml/ref/alter_function.sgml
+++ b/doc/src/sgml/ref/alter_function.sgml
@@ -236,8 +236,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>
diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml
index 20019215351..af66de3409e 100644
--- a/doc/src/sgml/ref/create_function.sgml
+++ b/doc/src/sgml/ref/create_function.sgml
@@ -421,8 +421,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>
[parent: 860f8fb1aa4e]