Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit7ceb6fb

Browse files
committed
doc: Clarify some wording in PL/pgSQL about transactions
Some text was still claiming that committing transactions was notpossible in PL/pgSQL.
1 parent0a63f99 commit7ceb6fb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎doc/src/sgml/plpgsql.sgml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,9 @@ $$ LANGUAGE plpgsql;
305305
for transaction
306306
control. <application>PL/pgSQL</application>'s <command>BEGIN</command>/<command>END</command>
307307
are only for grouping; they do not start or end a transaction.
308-
Functions are always executed within a transaction
309-
established by an outer query &mdash; they cannot start or commit that
310-
transaction, since there would be no context for them to execute in.
311-
However, a block containing an <literal>EXCEPTION</literal> clause effectively
308+
See <xref linkend="plpgsql-transactions"/> for information on managing
309+
transactions in <application>PL/pgSQL</application>.
310+
Also, a block containing an <literal>EXCEPTION</literal> clause effectively
312311
forms a subtransaction that can be rolled back without affecting the
313312
outer transaction. For more about that see <xref
314313
linkend="plpgsql-error-trapping"/>.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp