10000 Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT. · patchsoft/postgres@9306758 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9306758

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

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
@@ -448,8 +448,9 @@ CREATE [ OR REPLACE ] FUNCTION
448448
The <literal>SET</> clause causes the specified configuration
449449
parameter to be set to the specified value when the function is
450450
entered, and then restored to its prior value when the function exits.
451-
<literal>SET FROM CURRENT</> saves the session's current value of
452-
the parameter as the value to be applied when the function is entered.
451+
<literal>SET FROM CURRENT</> saves the value of the parameter that
452+
is current when <command>CREATE FUNCTION</> is executed as the value
453+
to be applied when the function is entered.
453454
</para>
454455

455456
<para>

0 commit comments

Comments
 (0)
0