Make SPI_prepare argtypes argument const - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Make SPI_prepare argtypes argument const
Date
Msg-id 86b5162f-c472-40fa-997b-0450dece1dec@eisentraut.org
Whole thread
Responses Re: Make SPI_prepare argtypes argument const
Re: Make SPI_prepare argtypes argument const
List 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

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: PG19 FK fast path: OOB write and missed FK checks during batched
Next
From: Amit Kapila
Date:
Subject: Re: Fix race in ReplicationSlotRelease for ephemeral slots