SPI_EXEC...PARAMLIST(3)
β¨ SPI_EXEC...PARAMLIST β¨
okay bestie, welcome to the PostgreSQL 18.6 docs, page for SPI_execute_plan_with_paramlist π this one lives in the SPI_EXEC...PARAMLIST(3) manual, section 3, and it's giving "I run your prepared statements but with a lil twist" energy π
πΈ NAME πΈ
SPI_execute_plan_with_paramlist β execute a statement prepared by SPI_prepare π
π¦ SYNOPSIS π¦
int SPI_execute_plan_with_paramlist(SPIPlanPtr plan,
ParamListInfo params,
bool read_only,
long count)
like look at her, four args, iconic, no notes π
π DESCRIPTION π
so basically SPI_execute_plan_with_paramlist runs a statement that was prepped by SPI_prepare, fr fr. This function is equivalent to SPI_execute_plan except that the info about the parameter values getting passed to the query is presented differently π«Ά
the ParamListInfo representation is lowkey convenient when you already have values chillin' in that format β just hand 'em over, no conversion drama π
and it also supports use of dynamic parameter sets via hook functions specified in ParamListInfo β¨ which is a whole vibe.
ngl this function is now deprecated in favor of SPI_execute_plan_extended π it still works but likeβ¦ the newer one is the main character now. use that one bestie.
π ARGUMENTS π
SPIPlanPtr planβ your prepared statement, aka the thing that was returned bySPI_prepareπParamListInfo paramsβ the data structure holding the parameter types and values; passNULLif there are none πbool read_onlyβtruefor read-only execution, so she behaves herself and doesn't write anything πlong countβ the maximum number of rows to return, or0for no limit (go off, unlimited queen π)
β RETURN VALUE β
the return value is the same as for SPI_execute_plan β no surprises, same energy π¦
SPI_processed and SPI_tuptable are set as in SPI_execute_plan if it succeeds β¨
mwah π that's the whole page. sourced straight from the PostgreSQL 18.6 docs, dated 2026, and yeah β this is the SPI_EXEC...PARAMLIST(3) manual page, we ate and left no crumbs π
π¦ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 Β· PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 Β· PostgreSQL
- arch rolling: postgresql 18.6-4 Β· PostgreSQL
- fedora 43: postgresql-server-devel 18.6-1.fc43 Β· PostgreSQL
- fedora 43: postgresql-server-devel 18.6-1.fc43 Β· PostgreSQL
- fedora 44: postgresql-server-devel 18.6-1.fc44 Β· PostgreSQL
- fedora 44: postgresql-server-devel 18.6-1.fc44 Β· PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-doc-18 18.6-0ubuntu0.26.04.1 Β· PostgreSQL
- ubuntu stonking: postgresql-doc-18 18.6-3build2 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms