Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e775d35

Browse files
committed
Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.
Per discussion with David Johnston.
1 parent 67c08c0 commit e775d35

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/src/sgml/ref/alter_function.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
259259
setting is removed, so that the function executes with the value
260260
present in its environment. Use <literal>RESET
261261
ALL</literal> to clear all function-local settings.
262-
<literal>SET FROM CURRENT</> saves the session's current value of
263-
the parameter as the value to be applied when the function is entered.
262+
<literal>SET FROM CURRENT</> saves the value of the parameter that
263+
is current when <command>ALTER FUNCTION</> is executed as the value
264+
to be applied when the function is entered.
264265
</para>
265266

266267
<para>

doc/src/sgml/ref/create_function.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,9 @@ CREATE [ OR REPLACE ] FUNCTION
486486
The <literal>SET</> clause causes the specified configuration
487487
parameter to be set to the specified value when the function is
488488
entered, and then restored to its prior value when the function exits.
489-
<literal>SET FROM CURRENT</> saves the session's current value of
490-
the parameter as the value to be applied when the function is entered.
489+
<literal>SET FROM CURRENT</> saves the value of the parameter that
490+
is current when <command>CREATE FUNCTION</> is executed as the value
491+
to be applied when the function is entered.
491492
</para>
492493

493494
<para>

0 commit comments

Comments
 (0)