diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-09 13:39:24 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-08-09 13:39:40 -0400 |
commit | 930675867b932efe02a4aba8b639402a2f3d5b9d (patch) | |
tree | 5d7046051ce3ba1cb76e52f9d0c16b52d962ba1c | |
parent | eb4dfa239e6f54fef5c486caf4b58a9805c19572 (diff) | |
download | postgresql-930675867b932efe02a4aba8b639402a2f3d5b9d.tar.gz postgresql-930675867b932efe02a4aba8b639402a2f3d5b9d.zip |
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 4e77962c88d..ef2e0b1f93c 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 bd11d2bc289..6f94e4cb5d7 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -448,8 +448,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> |