RefLib

Reference library for AI

Back

postgresql_16:6.6.1 Overview

PostgreSQL 16 > Server Programming > PL/pgSQL — SQL Procedural Language > Overview

PL/pgSQL is a loadable procedural language for the PostgreSQL database system. The design goals of PL/pgSQL were to create a loadable procedural language that can be used to create functions, procedures, and triggers, adds control structures to the SQL language, can perform complex computations, inherits all user-defined types, functions, procedures, and operators, can be defined to be trusted by the server, is easy to use.

Functions created with PL/pgSQL can be used anywhere that built-in functions could be used. For example, it is possible to create complex conditional computation functions and later use them to define operators or use them in index expressions.

In PostgreSQL 9.0 and later, PL/pgSQL is installed by default. However it is still a loadable module, so especially security-conscious administrators could choose to remove it.

Subsections

Back