12th September 2019: PostgreSQL 12 Beta 4 Released!
Unsupported versions: 7.0
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the supported versions listed above instead.

Macro Commands

DEFINE FUNCTION macro_name AS rettype function_name(args)

Define a function prototype for a function named macro_name which has its value of type rettype computed from the execution function_name with the arguments args declared in a C-like manner.

DEFINE MACRO macro_name FROM FILE filename

Define a macro named macro_name which has its value read from the file called filename.