SPI_PREPARE_EXTENDED(3)
π NAME π
okay so this is the <hotpink>SPI_PREPARE_EXTENDED(3)</hotpink> page, bestie β literally the manual for SPI_prepare_extended, a function that prepares a statement, without executing it yet. it's giving "get it ready, don't run it" energy β¨
πΈ SYNOPSIS πΈ
SPIPlanPtr SPI_prepare_extended(const char * command,
const SPIPrepareOptions * options)
π¦ DESCRIPTION π¦
SPI_prepare_extended creates and returns a prepared statement for the specified command, but doesn't execute the command. no cap.
This function is equivalent to SPI_prepare, with the addition that the caller can specify options to control the parsing of external parameter references, as well as other facets of query parsing and planning. same main-character function, extra control-freak options π
π ARGUMENTS π
const char * commandβ command string. that's the command, bestie.const SPIPrepareOptions * optionsβ struct containing optional arguments.
okay bestie, listen: callers should always zero out the entire options struct, then fill whichever fields they want to set. This ensures forward compatibility of code, since any fields that are added to the struct in future will be defined to behave backwards-compatibly if they are zero. fr fr, zero it first π«Ά
The currently available options fields are:
ParserSetupHook parserSetupβ parser hook setup function.void * parserSetupArgβ pass-through argument forparserSetup.RawParseMode parseModeβ mode for raw parsing;RAW_PARSE_DEFAULT(zero) produces default behavior.int cursorOptionsβ integer bit mask of cursor options; zero produces default behavior.
π RETURN VALUE π
SPI_prepare_extended has the same return conventions as SPI_prepare. periodt π
mwah π this page is from PostgreSQL 14.24, dated 2026, and it's the SPI_PREPARE_EXTENDED(3) man page β byeee π«Ά
π¦ 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