RefLib

Reference library for AI

Back

postgresql_16:7.1.68.4 Examples

PostgreSQL 16 > Reference > SQL Commands > CREATE LANGUAGE > Examples

A minimal sequence for creating a new procedural language is: CREATE FUNCTION plsample_call_handler() RETURNS language_handler AS '$libdir/plsample' LANGUAGE C; CREATE LANGUAGE plsample HANDLER plsample_call_handler; Typically that would be written in an extension's creation script, and users would do this to install the extension: CREATE EXTENSION plsample;

Back