SPI_PREPARE_PARAMS(3)
π NAME π
Okay so welcome to the SPI_PREPARE_PARAMS(3) page, bestie! This one is all about SPI_prepare_params β and what it does is prepare a statement, without executing it yet. Literally prepping it, not running it. π
β¨ SYNOPSIS β¨
SPIPlanPtr SPI_prepare_params(const char * command,
ParserSetupHook parserSetup,
void * parserSetupArg,
int cursorOptions)
π¦ DESCRIPTION π¦
SPI_prepare_params creates and returns a prepared statement for the specified command, but doesn't execute the command. No cap, it just gets it ready. π
This function is equivalent to SPI_prepare_cursor, with the addition that the caller can specify parser hook functions to control the parsing of external parameter references. That's the extra little sparkle. β¨
Big heads-up, bestie: this function is now deprecated in favor of SPI_prepare_extended. The docs said it, not me. π
π«Ά ARGUMENTS π«Ά
const char * commandβ command string. Literally the command string, bestie.ParserSetupHook parserSetupβ parser hook setup function.void * parserSetupArgβ pass-through argument forparserSetup.int cursorOptionsβ integer bit mask of cursor options; zero produces default behavior.
π RETURN VALUE π
SPI_prepare_params has the same return conventions as SPI_prepare. That's the return vibe check. π«Ά
Later, bestie! π This page is from PostgreSQL 14.24 documentation, dated 2026. Mwah. π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14-docs 14.24-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