summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2016-08-09 17:39:24 +0000
committerTom Lane2016-08-09 17:40:03 +0000
commit99453178a5fb21c79b94dc99f0075b01e10d647a (patch)
tree507c8c32b2c97ab6ad62c198d1b56708c85350ea
parentcb5b88af7dc7529dcdfd8c0ff71c5372877b7f19 (diff)
Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.
Per discussion with David Johnston.
-rw-r--r--doc/src/sgml/ref/alter_function.sgml5
-rw-r--r--doc/src/sgml/ref/create_function.sgml5
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 acb3e4fb93f..c0f4c5ed68f 100644
--- a/doc/src/sgml/ref/alter_function.sgml
+++ b/doc/src/sgml/ref/alter_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>
diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml
index 4a3bde5a49b..ed69b891a3e 100644
--- a/doc/src/sgml/ref/create_function.sgml
+++ b/doc/src/sgml/ref/create_function.sgml
@@ -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>