1SPI_EXECP(3)            PostgreSQL 9.2.24 Documentation           SPI_EXECP(3)
2
3
4

NAME

6       SPI_execp - execute a statement in read/write mode
7

SYNOPSIS

9       int SPI_execp(SPIPlanPtr plan, Datum * values, const char * nulls, long count)
10

DESCRIPTION

12       SPI_execp is the same as SPI_execute_plan, with the latter's read_only
13       parameter always taken as false.
14

ARGUMENTS

16       SPIPlanPtr plan
17           prepared statement (returned by SPI_prepare)
18
19       Datum * values
20           An array of actual parameter values. Must have same length as the
21           statement's number of arguments.
22
23       const char * nulls
24           An array describing which parameters are null. Must have same
25           length as the statement's number of arguments.  n indicates a null
26           value (entry in values will be ignored); a space indicates a
27           nonnull value (entry in values is valid).
28
29           If nulls is NULL then SPI_execp assumes that no parameters are
30           null.
31
32       long count
33           maximum number of rows to return, or 0 for no limit
34

RETURN VALUE

36       See SPI_execute_plan.
37
38       SPI_processed and SPI_tuptable are set as in SPI_execute if successful.
39
40
41
42PostgreSQL 9.2.24                 2017-11-06                      SPI_EXECP(3)
Impressum