DROP_CAST
remove a cast
- Provided by: postgresql-client-18 (Version: 18.3-1)
- Source: postgresql-18
- Report a bug
remove a cast
DROP CAST [ IF EXISTS ] (source_type AS target_type) [ CASCADE | RESTRICT ]
DROP CAST removes a previously defined cast.
To be able to drop a cast, you must own the source or the target data type. These are the same privileges that are required to create a cast.
IF EXISTS
source_type
target_type
CASCADE
RESTRICT
To drop the cast from type text to type int:
DROP CAST (text AS int);
The DROP CAST command conforms to the SQL standard.
CREATE CAST (CREATE_CAST(7))