Summary
The catalog pg_transform stores information about transforms, which are a mechanism to adapt data types to procedural languages. See createtransform for more information.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_transform system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifiertrftypeoidreferencespg_type.oid
OID of the data type this transform is fortrflangoidreferencespg_language.oid
OID of the language this transform is fortrffromsqlregprocreferencespg_proc.oid
The OID of the function to use when converting the data type for input to the procedural language (e.g., function parameters). Zero is stored if the default behavior should be used.trftosqlregprocreferencespg_proc.oid
The OID of the function to use when converting output from the procedural language (e.g., return values) to the data type. Zero is stored if the default behavior should be used.
Related catalogs
This object references the following other system catalogs:
trftype→pg_typetrflang→pg_languagetrffromsql→pg_proc
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_transform.