pg_cast stores data type conversion paths, both built-in paths and those defined with CREATE CAST.
Table 3-8. pg_cast Columns
| Name | 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. Zero is stored if the data types are binary coercible (that is, no run-time operation is needed to perform the cast). |
| castcontext | char | Indicates what contexts the cast may be invoked in. e means only as an explicit cast (using CAST, ::, or function-call syntax). a means implicitly in assignment to a target column, as well as explicitly. i means implicitly in expressions, as well as the other cases. |
No comments could be found for this page.
Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.
In order to submit a comment, you must have a community account.
* denotes required field