SPI_EXECP(3)
π NAME π
okay so bestie, this is SPI_EXECP(3) β the PostgreSQL 13.23 manual page for SPI_execp, and it literally executes a statement in read/write mode. slay. β¨
β¨ 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. no cap, it's giving read/write energy. π₯
π ARGUMENTS π
SPIPlanPtr planβ the prepared statement, returned bySPI_prepare. main character argument fr fr. πDatum * valuesβ an array of actual parameter values. It must have the same length as the statement's number of arguments. match the energy, bestie. πconst char * nullsβ an array describing which parameters are null. It must have the same length as the statement's number of arguments. π«Ά
If nulls is NULL, then SPI_execp assumes that no parameters are null. Otherwise, each entry of the nulls array should be ' ' if the corresponding parameter value is non-null, or 'n' if the corresponding parameter value is null. (In the latter case, the actual value in the corresponding values entry doesn't matter.) Note that nulls is not a text string, just an array: it does not need a '\0' terminator. lowkey important, don't skip this. πΈ
long countβ maximum number of rows to return, or0for no limit. iconic little limit knob. β
π RETURN VALUE π
See SPI_execute_plan. π
SPI_processed and SPI_tuptable are set as in SPI_execute if successful. periodt. π
π· that's the whole page, bestie β straight from the PostgreSQL 13.23 docs, dated 2025. SPI_EXECP(3) out. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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