Skip to content

Commit fdc79e1

Browse files
committed
Fix executor/README to reflect disallowing SRFs in UPDATE.
The parenthetical comment here is obsoleted by commit a4c35ea. Noted by Andres Freund.
1 parent a4c35ea commit fdc79e1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/executor/README

+4-5
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)