3.8. pg_cast

pg_cast stores data type conversion paths defined with CREATE CAST plus the built-in conversions.

Table 3-8. pg_cast Columns

NameTypeReferencesDescription
castsourceoidpg_type.oidOID of the source data type
casttargetoidpg_type.oidOID of the target data type
castfuncoidpg_proc.oid The OID of the function to use to perform this cast. A 0 is stored if the data types are binary compatible (that is, no function is needed to perform the cast).
castimplicitbool Indication whether this cast can be invoked implicitly