2 .\" Title: SPI_cursor_open_with_paramlist
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_CURSOR_OPEN_WITH_PARAMLIST" "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_cursor_open_with_paramlist \- set up a cursor using parameters
35 Portal SPI_cursor_open_with_paramlist(const char *\fIname\fR,
36 SPIPlanPtr \fIplan\fR,
37 ParamListInfo \fIparams\fR,
42 \fBSPI_cursor_open_with_paramlist\fR
43 sets up a cursor (internally, a portal) that will execute a statement prepared by
44 \fBSPI_prepare\fR\&. This function is equivalent to
46 except that information about the parameter values to be passed to the query is presented differently\&. The
48 representation can be convenient for passing down values that are already available in that format\&. It also supports use of dynamic parameter sets via hook functions specified in
51 The passed\-in parameter data will be copied into the cursor\*(Aqs portal, so it can be freed while the cursor still exists\&.
54 const char * \fIname\fR
58 to let the system select a name
63 prepared statement (returned by
67 ParamListInfo \fIparams\fR
69 data structure containing parameter types and values; NULL if none
75 for read\-only execution
79 Pointer to portal containing the cursor\&. Note there is no error return convention; any error will be reported via