SQL Commands / Types & Operators
DROP CONVERSION
Read the PG 18 manualremove a conversion
Reading PG 18current·documented in 25 of 30 versions, 7.3 to 20
Syntax
DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
Description
DROP CONVERSION removes a previously defined conversion. To be able to drop a conversion, you must own the conversion.
Parameters
IF EXISTSDo not throw an error if the conversion does not exist. A notice is issued in this case.
nameThe name of the conversion. The conversion name can be schema-qualified.
CASCADERESTRICTThese key words do not have any effect, since there are no dependencies on conversions.
Examples
To drop the conversion named myname:
DROP CONVERSION myname;
Compatibility
There is no DROP CONVERSION statement in the SQL standard, but a DROP TRANSLATION statement that goes along with the CREATE TRANSLATION statement that is similar to the CREATE CONVERSION statement in PostgreSQL.
See Also
ALTER CONVERSION, CREATE CONVERSIONVersion history 5
Related entries
Definition snapshot: b7bd9cda · English manual source