Server Programming Interface (SPI)

A set of interface functions for executing SQL commands inside C functions

The Server Programming Interface (SPI) is a set of interface functions for executing SQL commands inside C functions which run in the PostgreSQL server context.

For an interface for embedding SQL commands into external C programs, see ECPG.

SPI was added in PostgreSQL 6.2.

Change history

Categories

Application interface, PostgreSQL internals

See also

spi, ECPG, worker_spi