pg_cast
The pg_cast table stores data type conversion paths, both built-in paths and those defined with CREATE CAST.
| Column | Type | References | Description |
|---|---|---|---|
castsource |
oid |
pg_type.oid |
OID of the source data type |
casttarget |
oid |
pg_type.oid |
OID of the target data type |
castfunc |
oid |
pg_proc.oid |
The OID of the function to use to perform this cast.
|
castcontext |
char |
— |
Indicates what contexts the cast may be invoked in:
|
castmethod |
char |
— |
Indicates how the cast is performed:
|