Make SPI_prepare argtypes argument const

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Make SPI_prepare argtypes argument const
Date: 2026-06-11 09:22:10
Message-ID: 86b5162f-c472-40fa-997b-0450dece1dec@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This changes the argtypes argument of SPI_prepare(),
SPI_prepare_cursor(), SPI_cursor_open_with_args(), and
SPI_execute_with_args() from Oid *argtypes to const Oid *argtypes.
The underlying functions were already receptive to that, so this
doesn't require any significant changes beyond the function signatures
and some internal variables.

Commit 28972b6fc3dc recently introduced a case where a const had to be
cast away before calling these functions. This is fixed here.

Attachment Content-Type Size
0001-Make-SPI_prepare-argtypes-argument-const.patch text/plain 11.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2026-06-11 09:22:24 Re: Fix race in ReplicationSlotRelease for ephemeral slots
Previous Message Amit Langote 2026-06-11 09:05:34 Re: PG19 FK fast path: OOB write and missed FK checks during batched