SPI_PREPARE_PARAMS(3)

πŸ“¦ version 14.24, in opensuse-leap 16.0

πŸ’– 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 for parserSetup.
  • 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