SPI_EXEC...PARAMLIST(3)

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

πŸ’… SPI_EXEC...PARAMLIST(3) πŸ’…

okay so bestie, welcome to the PostgreSQL 16.15 Documentation page for SPI_EXEC...PARAMLIST(3) β€” this is the one about executing a statement that was prepared by SPI_prepare. pull up a chair, we're getting into it 🫢


✨ NAME ✨

SPI_execute_plan_with_paramlist β€” execute a statement prepared by SPI_prepare


πŸ¦‹ SYNOPSIS πŸ¦‹

int SPI_execute_plan_with_paramlist(SPIPlanPtr plan,
                                    ParamListInfo params,
                                    bool read_only,
                                    long count)

🌸 DESCRIPTION 🌸

SPI_execute_plan_with_paramlist executes a statement prepared by SPI_prepare. no cap, that's the whole main-character job πŸ’…

This function is equivalent to SPI_execute_plan except that information about the parameter values to be passed to the query is presented differently. it's giving "same task, different outfit" ✨ 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.

⚠️ deprecated alert: this function is now deprecated in favor of SPI_execute_plan_extended. bestie, use the newer one when you can β€” iykyk 😭

πŸŽ€ ARGUMENTS πŸŽ€

  • SPIPlanPtr plan β€” prepared statement (returned by SPI_prepare) 🧚
  • ParamListInfo params β€” data structure containing parameter types and values; NULL if none
  • bool read_only β€” true for read-only execution
  • long count β€” maximum number of rows to return, or 0 for no limit

🌈 RETURN VALUE 🌈

The return value is the same as for SPI_execute_plan. periodt πŸ’–

SPI_processed and SPI_tuptable are set as in SPI_execute_plan if successful. so if it slays, those get set the same way β€” literally no extra lore there πŸ”₯


mwah πŸ’‹ and that's the page, bestie β€” source/version is PostgreSQL 16.15, dated 2026, and the page is SPI_EXEC...PARAMLIST(3) πŸŽ€βœ¨

πŸ“¦ where this page comes from