]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix SPI documentation for new handling of ExecutorRun's count parameter.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Jan 2013 23:34:15 +0000 (18:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Jan 2013 23:34:15 +0000 (18:34 -0500)
commit6121539aca2c797b8a9a78bb642ed060a9209d8e
tree1a1fabf5fee75973bc349bedb28cbab81215cc03
parent474cfc390a83964f9e2154ada5d28e6cc7c4a395
Fix SPI documentation for new handling of ExecutorRun's count parameter.

Since 9.0, the count parameter has only limited the number of tuples
actually returned by the executor.  It doesn't affect the behavior of
INSERT/UPDATE/DELETE unless RETURNING is specified, because without
RETURNING, the ModifyTable plan node doesn't return control to execMain.c
for each tuple.  And we only check the limit at the top level.

While this behavioral change was unintentional at the time, discussion of
bug #6572 led us to the conclusion that we prefer the new behavior anyway,
and so we should just adjust the docs to match rather than change the code.
Accordingly, do that.  Back-patch as far as 9.0 so that the docs match the
code in each branch.
doc/src/sgml/spi.sgml
src/backend/executor/execMain.c