Functions v1

Description

This page provides information about the functions in the database.

Very large numbers of system functions are present in the schema pg_catalog, and so the default behaviour (on all pages, in fact) is to exclude that schema (and one or two others), so you see only user defined functions.

All, or very nearly almost all, of the system provided functions have no text stored in the system tables. I have no idea why, but there it is. It might be a property of Redshift, rather than Postgres, but I’ve not looked (Redshift also does not allow users to access the system columnds in each table, where Postgres does).

Columns

Name Type
schema_id int8
schema varchar
language_id int8
language varchar
owner_user_id int4
owner varchar
volatility varchar
return varchar
function_id int8
function varchar
arguments_ids varchar
arguments varchar
related pages varchar

Column Descriptions

schema_id

The schema ID. This column is emitted in CSV exports only.

schema

The schema name.

language_id

The language ID. This column is emitted in CSV exports only.

language

The language name.

owner_user_id

The owner user ID. This column is emitted in CSV exports only.

owner

The owner user name.

volatility

One of three values, indicating function volatility;

Value
immutable
stable
volatile

Nice that the logical ordering of the values is also alphabetic :-)

return

The data type of the return value of the function.

function_id

The function ID. This column is emitted in CSV exports only.

function

The function name.

arguments_ids

A comma separated string of the data type IDs for the function arguments. This column is emitted in CSV exports only.

arguments

A comma separated string of the base (so not adorned with lengths, precision, scale, etc) data type names for the function arguments.