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_EXECP" "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_execp \- execute a statement in read/write mode
35 int SPI_execp(SPIPlanPtr \fIplan\fR, Datum * \fIvalues\fR, const char * \fInulls\fR, long \fIcount\fR)
41 \fBSPI_execute_plan\fR, with the latter\*(Aqs
43 parameter always taken as
49 prepared statement (returned by
55 An array of actual parameter values\&. Must have same length as the statement\*(Aqs number of arguments\&.
58 const char * \fInulls\fR
60 An array describing which parameters are null\&. Must have same length as the statement\*(Aqs number of arguments\&.
68 assumes that no parameters are null\&. Otherwise, each entry of the
72 if the corresponding parameter value is non\-null, or
74 if the corresponding parameter value is null\&. (In the latter case, the actual value in the corresponding
76 entry doesn\*(Aqt matter\&.) Note that
78 is not a text string, just an array: it does not need a
85 maximum number of rows to return, or
92 \fBSPI_execute_plan\fR\&.