diff options
author | Tom Lane | 2016-08-09 17:39:24 +0000 |
---|---|---|
committer | Tom Lane | 2016-08-09 17:39:24 +0000 |
commit | e775d35317590793863327fedcf3737c3ab838d4 (patch) | |
tree | 221cc6a14a79f2900fa67fb9b9620c7a220c5fb8 | |
parent | 67c08c0d704a5f828492642bf9d133cbb2af3661 (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.sgml | 5 | ||||
-rw-r--r-- | 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 865d52b591..0388d06b95 100644 --- a/doc/src/sgml/ref/alter_function.sgml +++ b/doc/src/sgml/ref/alter_function.sgml @@ -259,8 +259,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 abb0d33031..8108a43095 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -486,8 +486,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> |