]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fixes for SPI "const Datum *" use
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 30 Jun 2026 12:03:10 +0000 (14:03 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 30 Jun 2026 12:47:53 +0000 (14:47 +0200)
commit2fb6015f78749c3a235354acded31562414775be
tree02bf748ccdc4b981fc90b5f45e50b755ba94928c
parentff6f6e0470ecb362a389bb20aac46a843e496c2f
Fixes for SPI "const Datum *" use

Fixup for commit 8a27d418f8f, which converted many functions to use
"const Datum *" instead of "Datum *", including some SPI functions.

For SPI_cursor_open(), the code was updated but not the documentation.
For SPI_cursor_open_with_args(), the documentation was updated but not
the code.  (Possibly, these two were confused with each other.)  Also,
SPI_execp() and SPI_modifytuple() were not updated, even though they
are closely related to the functions touched by the previous commit
and now look inconsistent.  Fix all these.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/86b5162f-c472-40fa-997b-0450dece1dec%40eisentraut.org
doc/src/sgml/spi.sgml
src/backend/executor/spi.c
src/include/executor/spi.h