---
title: "SPI (Server Programming Interface) — Database Glossary | Xata"
description: "A C API allowing PostgreSQL extensions and stored procedures to execute SQL statements from within server-side code. Provides functions like SPI_execute..."
source: "https://xata.io/glossary/spi"
---

# SPI (Server Programming Interface)

PostgreSQL

A C API allowing PostgreSQL extensions and stored procedures to execute SQL statements from within server-side code. Provides functions like SPI_execute(), SPI_prepare(), and result set iteration.

[← Back to glossary](/glossary)
