System Catalogs / System catalogs
pg_language
Read the PG 18 manualThe catalog pg_language registers languages in which you can write functions or stored procedures.
Reading PG 18current·documented in 24 of 24 versions, 7.4 to 20
- Kind
- System catalogs
- Columns in this snapshot
- 9
- Definition source
- English manual
- Metadata snapshot
- 18.6
Columns 9
As listed in the PostgreSQL 18 manual.
| Column | Type | Description / reference |
|---|---|---|
oid | oidNOT NULL | Row identifier |
lanname | nameNOT NULL | Name of the language |
lanowner | oidNOT NULL | Owner of the language pg_authid.oid |
lanispl | boolNOT NULL | This is false for internal languages (such as SQL) and true for user-defined languages. Currently, pg_dump still uses this to determine which languages need to be dumped, but this might be replaced by a different mechanism in the future. |
lanpltrusted | boolNOT NULL | True if this is a trusted language, which means that it is believed not to grant access to anything outside the normal SQL execution environment. Only superusers can create functions in untrusted languages. |
lanplcallfoid | oidNOT NULL | For noninternal languages this references the language handler, which is a special function that is responsible for executing all functions that are written in the particular language. Zero for internal languages. pg_proc.oid |
laninline | oidNOT NULL | This references a function that is responsible for executing “inline” anonymous code blocks (DO blocks). Zero if inline blocks are not supported. pg_proc.oid |
lanvalidator | oidNOT NULL | This references a language validator function that is responsible for checking the syntax and validity of new functions when they are created. Zero if no validator is provided. pg_proc.oid |
lanacl | aclitem[] | Access privileges; see Section 5.8 for details |
Column history across versions
Version history 13
Definition snapshot: english-manuals:6c96f466f8e90a9154f65e2c56e… · English manual source