Skip to content

Commit e4b4a46

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

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
@@ -236,8 +236,9 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
236236
setting is removed, so that the function executes with the value
237237
present in its environment. Use <literal>RESET
238238
ALL</literal> to clear all function-local settings.
239-
<literal>SET FROM CURRENT</> saves the session's current value of
240-
the parameter as the value to be applied when the function is entered.
239+
<literal>SET FROM CURRENT</> saves the value of the parameter that
240+
is current when <command>ALTER FUNCTION</> is executed as the value
241+
to be applied when the function is entered.
241242
</para>
242243

243244
<para>

doc/src/sgml/ref/create_function.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,9 @@ CREATE [ OR REPLACE ] FUNCTION
421421
The <literal>SET</> clause causes the specified configuration
422422
parameter to be set to the specified value when the function is
423423
entered, and then restored to its prior value when the function exits.
424-
<literal>SET FROM CURRENT</> saves the session's current value of
425-
the parameter as the value to be applied when the function is entered.
424+
<literal>SET FROM CURRENT</> saves the value of the parameter that
425+
is current when <command>CREATE FUNCTION</> is executed as the value
426+
to be applied when the function is entered.
426427
</para>
427428

428429
<para>

0 commit comments

Comments
 (0)