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

Commitfdc79e1

Browse files
committed
Fix executor/README to reflect disallowing SRFs in UPDATE.
The parenthetical comment here is obsoleted by commita4c35ea.Noted by Andres Freund.
1 parenta4c35ea commitfdc79e1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/backend/executor/README

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ the entire row value in the join output row.
195195
We disallow set-returning functions in the targetlist of SELECT FOR UPDATE,
196196
so as to ensure that at most one tuple can be returned for any particular
197197
set of scan tuples. Otherwise we'd get duplicates due to the original
198-
query returning the same set of scan tuples multiple times. (Note: there
199-
is no explicit prohibition on SRFs in UPDATE, but the net effect will be
200-
that only the first result row of an SRF counts, because all subsequent
201-
rows will result in attempts to re-update an already updated target row.
202-
This is historical behavior and seems not worth changing.)
198+
query returning the same set of scan tuples multiple times. Likewise,
199+
SRFs are disallowed in an UPDATE's targetlist. There, they would have the
200+
effect of the same row being updated multiple times, which is not very
201+
useful --- and updates after the first would have no effect anyway.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp