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

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9945317

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

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
@@ -225,8 +225,9 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
225225
setting is removed, so that the function executes with the value
226226
present in its environment. Use <literal>RESET
227227
ALL</literal> to clear all function-local settings.
228-
<literal>SET FROM CURRENT</> saves the session's current value of
229-
the parameter as the value to be applied when the function is entered.
228+
<literal>SET FROM CURRENT</> saves the value of the parameter that
229+
is current when <command>ALTER FUNCTION</> is executed as the value
230+
to be applied when the function is entered.
230231
</para>
231232

232233
<para>

doc/src/sgml/ref/create_function.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,9 @@ CREATE [ OR REPLACE ] FUNCTION
399399
The <literal>SET</> clause causes the specified configuration
400400
parameter to be set to the specified value when the function is
401401
entered, and then restored to its prior value when the function exits.
402-
<literal>SET FROM CURRENT</> saves the session's current value of
403-
the parameter as the value to be applied when the function is entered.
402+
<literal>SET FROM CURRENT</> saves the value of the parameter that
403+
is current when <command>CREATE FUNCTION</> is executed as the value
404+
to be applied when the function is entered.
404405
</para>
405406

406407
<para>

0 commit comments

Comments
 (0)
0