2 .\" Title: SPI_prepare_params
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "SPI_PREPARE_PARAMS" "3" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 SPI_prepare_params \- prepare a statement, without executing it yet
35 SPIPlanPtr SPI_prepare_params(const char * \fIcommand\fR,
36 ParserSetupHook \fIparserSetup\fR,
37 void * \fIparserSetupArg\fR,
38 int \fIcursorOptions\fR)
42 \fBSPI_prepare_params\fR
43 creates and returns a prepared statement for the specified command, but doesn\*(Aqt execute the command\&. This function is equivalent to
44 \fBSPI_prepare_cursor\fR, with the addition that the caller can specify parser hook functions to control the parsing of external parameter references\&.
46 This function is now deprecated in favor of
47 \fBSPI_prepare_extended\fR\&.
50 const char * \fIcommand\fR
55 ParserSetupHook \fIparserSetup\fR
57 Parser hook setup function
60 void * \fIparserSetupArg\fR
62 pass\-through argument for
66 int \fIcursorOptions\fR
68 integer bit mask of cursor options; zero produces default behavior
72 \fBSPI_prepare_params\fR
73 has the same return conventions as