SPI_EXEC...PARAMLIST(3)
β¨ NAME β¨
Okay bestie, this is SPI_EXEC...PARAMLIST(3) β straight from the PostgreSQL 17.11 Documentation, and it's giving βexecute a statement prepared by SPI_prepareβ energy. π
SPI_execute_plan_with_paramlist β execute a statement prepared by SPI_prepare. Periodt.
πΈ SYNOPSIS πΈ
int SPI_execute_plan_with_paramlist(SPIPlanPtr plan,
ParamListInfo params,
bool read_only,
long count)
π¦ DESCRIPTION π¦
So SPI_execute_plan_with_paramlist executes a statement prepared by SPI_prepare. Literally that's the main character move. π
This function is equivalent to SPI_execute_plan except that information about the parameter values to be passed to the query is presented differently. The ParamListInfo representation can be convenient for passing down values that are already available in that format. It also supports use of dynamic parameter sets via hook functions specified in ParamListInfo. No cap. π«Ά
β οΈ Heads up, bestie: this function is now deprecated in favor of SPI_execute_plan_extended. So it's still here, but it's lowkey in its legacy era. π
π ARGUMENTS π
SPIPlanPtr planβ the prepared statement, returned bySPI_prepare. Your main character plan. πParamListInfo paramsβ data structure containing parameter types and values;NULLif none. So if there are no params, passNULL, simple as that. β¨bool read_onlyβtruefor read-only execution. Keep it wholesome if you're just reading. πΈlong countβ maximum number of rows to return, or0for no limit. Zero means βgive me all the rows, bestie.β π₯
π RETURN VALUE π
The return value is the same as for SPI_execute_plan. Matching energy, matching result. π
SPI_processed and SPI_tuptable are set as in SPI_execute_plan if successful. So if it slays and succeeds, those get set the same way. π
With love, sparkle, and PostgreSQL 17.11 documentation vibes β dated 2026, bestie. πβ¨ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-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