pgsql: Fix SPI documentation for new handling of ExecutorRun's count pa

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix SPI documentation for new handling of ExecutorRun's count pa
Дата
Msg-id E1TyWJY-0007QS-JB@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ecfd9941ec2b6b2d7a6444d149d7d232c7e26a86

Modified Files
--------------
doc/src/sgml/spi.sgml           |   41 +++++++++++++++++++++++---------------
src/backend/executor/execMain.c |    6 +++-
2 files changed, 29 insertions(+), 18 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix SPI documentation for new handling of ExecutorRun's count pa
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix SPI documentation for new handling of ExecutorRun's count pa