DROP CONVERSION
Read PG 18 manual ↗remove a conversion
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 CONVERSIONRelated entries
Definition snapshot: 2026-09-14T13:14:25.700916+00:00@99e6866c · English manual source