postgresql_16:7.1.56 CREATE CAST
PostgreSQL 16 > Reference > SQL Commands > CREATE CAST
define a new cast
CREATE CAST (source_type AS target_type)
WITH FUNCTION function_name [ (argument_type [, ...]) ]
[ AS ASSIGNMENT | AS IMPLICIT ]
CREATE CAST (source_type AS target_type)
WITHOUT FUNCTION
[ AS ASSIGNMENT | AS IMPLICIT ]
CREATE CAST (source_type AS target_type)
WITH INOUT
[ AS ASSIGNMENT | AS IMPLICIT ]
CREATE CAST (source_type AS target_type)
WITH FUNCTION function_name [ (argument_type [, ...]) ]
[ AS ASSIGNMENT | AS IMPLICIT ]
CREATE CAST (source_type AS target_type)
WITHOUT FUNCTION
[ AS ASSIGNMENT | AS IMPLICIT ]
CREATE CAST (source_type AS target_type)
WITH INOUT
[ AS ASSIGNMENT | AS IMPLICIT ]
Subsections
- postgresql_16:7.1.56.1 Description
- postgresql_16:7.1.56.2 Parameters
- postgresql_16:7.1.56.3 Notes
- postgresql_16:7.1.56.4 Examples
- postgresql_16:7.1.56.5 Compatibility
- postgresql_16:7.1.56.6 See Also