SPI_PREPARE_PARAMS(3)
π SPI_PREPARE_PARAMS(3) β prepare a statement, without executing it yet
okay bestie, welcome to the SPI_PREPARE_PARAMS(3) manual page β¨ this one is all about getting a statement prepared but not executed yet β like getting your outfit ready but not leaving the house π
πΈ NAME πΈ
SPI_prepare_params β prepare a statement, without executing it yet
π 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 it doesn't execute the command. No cap, it just prepares it and hands it back to you π«Ά
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. It's giving "same vibe, but with parser-hook customization" β¨
Heads up, bestie: this function is now deprecated in favor of SPI_prepare_extended π
so it's still iconic, but it's not the main character anymore.
π ARGUMENTS π
const char * commandβ the command string π§ParserSetupHook parserSetupβ the parser hook setup function πΈvoid * parserSetupArgβ the pass-through argument forparserSetupπint cursorOptionsβ an integer bit mask of cursor options; zero produces default behavior β
π RETURN VALUE π
SPI_prepare_params has the same return conventions as SPI_prepare. So whatever you'd expect from SPI_prepare, that's the energy here π
That's the whole page, bestie β every detail accounted for, every vibe slayed. π β¨
This one comes from the PostgreSQL 17.11 Documentation, dated 2026 β mwah ππ
π¦ 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