SPI_EXEC...PARAMLIST(3)

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

✨ NAME ✨

okay so bestie, this is the SPI_EXEC...PARAMLIST(3) page from the PostgreSQL 14.24 Documentation 🫢. The function is SPI_execute_plan_with_paramlist β€” execute a statement prepared by SPI_prepare. periodt. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ’… DESCRIPTION πŸ’…

okay so SPI_execute_plan_with_paramlist executes a statement prepared by SPI_prepare. It is equivalent to SPI_execute_plan except that information about the parameter values to be passed to the query is presented differently. 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. no cap. ✨

⚠️ heads up bestie: this function is now deprecated in favor of SPI_execute_plan_extended. it’s giving deprecated icon energy, with a newer main character stepping in πŸ˜­πŸ’€

🌸 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.

SPI_processed and SPI_tuptable are set as in SPI_execute_plan if successful. slay. 🌈


mwah πŸ’‹ β€” this page is from PostgreSQL 14.24, dated 2026, and it’s the SPI_EXEC...PARAMLIST(3) page. bye bestie! 🫢✨

πŸ“¦ where this page comes from