SPI_EXECP(3)
π NAME
okay so bestie, this is the SPI_EXECP(3) page from the PostgreSQL 15.19 docs, and it's literally about SPI_execp β the function that executes a statement in read/write mode. periodt. π«Ά
β¨ SYNOPSIS
int SPI_execp(SPIPlanPtr plan, Datum * values, const char * nulls, long count)
π¦ DESCRIPTION
SPI_execp is the same as SPI_execute_plan, except the latter's read_only parameter is always taken as false. so yeah, read/write mode is the vibe here, no cap. π
π ARGUMENTS
SPIPlanPtr planβ a prepared statement, returned bySPI_prepare.Datum * valuesβ an array of actual parameter values. it must have the same length as the statement's number of arguments.const char * nullsβ an array describing which parameters are null. it also must have the same length as the statement's number of arguments. here's the tea:- if
nullsisNULL, thenSPI_execpassumes that no parameters are null. - otherwise, each entry of the
nullsarray should be' 'if the corresponding parameter value is non-null, or'n'if the corresponding parameter value is null. (in that null case, the actual value in the correspondingvaluesentry doesn't matter.) - lowkey important:
nullsis not a text string, just an array β it does not need a'\0'terminator. iykyk.
- if
long countβ maximum number of rows to return, or0for no limit.
π RETURN VALUE
- see
SPI_execute_plan. SPI_processedandSPI_tuptableare set as inSPI_executeif successful. slay.
that's the whole page, bestie! π this iconic manual page is from PostgreSQL 15.19, dated 2026 β SPI_EXECP(3) out! π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15-docs 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms