↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

System Catalogs / System catalogs

The 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.

ColumnTypeDescription / reference
oidoidNOT NULLRow identifier
lannamenameNOT NULLName of the language
lanowneroidNOT NULLOwner of the language
pg_authid.oid
lanisplboolNOT NULLThis 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.
lanpltrustedboolNOT NULLTrue 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.
lanplcallfoidoidNOT NULLFor 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
laninlineoidNOT NULLThis references a function that is responsible for executing “inline” anonymous code blocks (DO blocks). Zero if inline blocks are not supported.
pg_proc.oid
lanvalidatoroidNOT NULLThis 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
lanaclaclitem[]Access privileges; see Section 5.8 for details
Column history across versions
Version history 13
  1. 18 → 19 reworded
  2. 16 → 17 reworded
  3. 13 → 14 reworded
  4. 11 → 12 changed
  5. 10 → 11 reworded
  6. 9.6 → 10 reworded
  7. 9.5 → 9.6 reworded
  8. 9.2 → 9.3 reworded
  9. 8.4 → 9.0 changed
  10. 8.2 → 8.3 changed
  11. 8.1 → 8.2 reworded
  12. 8.0 → 8.1 reworded
  13. 7.4 → 8.0 reworded

Definition snapshot: english-manuals:6c96f466f8e90a9154f65e2c56e… · English manual source