2 .\" Title: SPI_execute_plan_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_EXECUTE_PLAN_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_execute_plan_with_paramlist \- execute a statement prepared by \fBSPI_prepare\fR
35 int SPI_execute_plan_with_paramlist(SPIPlanPtr \fIplan\fR,
36 ParamListInfo \fIparams\fR,
42 \fBSPI_execute_plan_with_paramlist\fR
43 executes a statement prepared by
44 \fBSPI_prepare\fR\&. This function is equivalent to
45 \fBSPI_execute_plan\fR
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 This function is now deprecated in favor of
52 \fBSPI_execute_plan_extended\fR\&.
57 prepared statement (returned by
61 ParamListInfo \fIparams\fR
63 data structure containing parameter types and values; NULL if none
69 for read\-only execution
74 maximum number of rows to return, or
80 The return value is the same as for
81 \fBSPI_execute_plan\fR\&.
87 \fBSPI_execute_plan\fR