Summary
The catalog pg_conversion describes encoding conversion functions. See createconversion for more information.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_conversion system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifierconnamename
Conversion name (unique within a namespace)connamespaceoidreferencespg_namespace.oid
The OID of the namespace that contains this conversionconowneroidreferencespg_authid.oid
Owner of the conversionconforencodingint4
Source encoding ID (pg_encoding_to_char() can translate this number to the encoding name)contoencodingint4
Destination encoding ID (pg_encoding_to_char() can translate this number to the encoding name)conprocregprocreferencespg_proc.oid
Conversion functioncondefaultbool
True if this is the default conversion
Related catalogs
This object references the following other system catalogs:
connamespace→pg_namespaceconowner→pg_authidconproc→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_conversion.