pg_conversion — PostgreSQL system catalog

The PostgreSQL pg_conversion system catalog: full column reference (names, types, descriptions), catalog relationships and version support.

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):

  • oid oid
    Row identifier
  • conname name
    Conversion name (unique within a namespace)
  • connamespace oid references pg_namespace.oid
    The OID of the namespace that contains this conversion
  • conowner oid references pg_authid.oid
    Owner of the conversion
  • conforencoding int4
    Source encoding ID (pg_encoding_to_char() can translate this number to the encoding name)
  • contoencoding int4
    Destination encoding ID (pg_encoding_to_char() can translate this number to the encoding name)
  • conproc regproc references pg_proc.oid
    Conversion function
  • condefault bool
    True if this is the default conversion

Related catalogs

This object references the following other system catalogs:

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.