DROP_CONVERSION(7pg16)
πΈ NAME πΈ
DROP_CONVERSION β remove a conversion
π SYNOPSIS π
DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
β¨ DESCRIPTION β¨
Okay bestie, listen up: DROP CONVERSION removes a conversion that was previously defined. That's literally the whole job. π
But important: to be able to drop a conversion, you must own the conversion. Ownership is the gatekeeping here, no cap. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the conversion does not exist. In that case, a notice is issued. So it's giving "gentle heads-up" instead of dramatic crash. π«Άnameβ the name of the conversion. The conversion name can be schema-qualified. Slay. π¦CASCADEβ this key word does not have any effect, since there are no dependencies on conversions. πRESTRICTβ this key word also does not have any effect, since there are no dependencies on conversions. Same energy, zero effect. π
π EXAMPLES π
To drop the conversion named myname:
DROP CONVERSION myname;
Periodt. That's the example, and it ate. π
π§ COMPATIBILITY π§
There is no DROP CONVERSION statement in the SQL standard. But there is a DROP TRANSLATION statement that goes along with the CREATE TRANSLATION statement, and that is similar to the CREATE CONVERSION statement in PostgreSQL. So yeah β SQL standard is like "not here," but PostgreSQL has its own little translation-related situation. iykyk. πΈ
π SEE ALSO π
ALTER CONVERSION(ALTER_CONVERSION(7))CREATE CONVERSION(CREATE_CONVERSION(7))
mwah π this page is from the PostgreSQL 16.15 documentation, dated 2026, and the manual page is DROP CONVERSION(7). Go forth and drop responsibly, bestie. π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms