pgsql: Fixes for SPI "const Datum *" use

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fixes for SPI "const Datum *" use
Date: 2026-06-30 12:57:48
Message-ID: E1weY28-000mOM-36@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/86b5162f-c472-40fa-997b-0450dece1dec%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cd3ad3bc03567ee120a638c840112b8865e055a8

Modified Files
--------------
doc/src/sgml/spi.sgml | 6 +++---
src/backend/executor/spi.c | 6 +++---
src/include/executor/spi.h | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2026-06-30 13:52:50 pgsql: Make SPI_prepare argtypes argument const
Previous Message Michael Paquier 2026-06-30 08:07:25 pgsql: Add backend-level lock statistics