DROP_CONVERSION(7)
๐ DROP_CONVERSION ๐
okay bestie, this is the DROP_CONVERSION page from the PostgreSQL 18.6 docs, and it's honestly a short one so we're gonna get through it together, no stress ๐ธ
โจ SYNOPSIS โจ
DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
that's it. that's the whole thing. she's compact ๐
๐ฆ DESCRIPTION ๐ฆ
so DROP CONVERSION removes a conversion that was previously defined. that's the whole job. she's a deleter, she's a closer, she's the "we don't need this anymore" friend ๐
โ ๏ธ but listen โ to be able to drop a conversion, you must own the conversion. no ownership, no dropping. that's the vibe check and you have to pass it ๐ซถ
๐ PARAMETERS ๐
IF EXISTSโ do not throw an error if the conversion doesn't exist. instead, a notice gets issued in this case. it's giving "no big deal, moving on" ๐โจnameโ the name of the conversion. and yes, the conversion name can be schema-qualified, so go off with yourmyschema.myconversionenergy ๐CASCADE,RESTRICTโ okay so these key words do not have any effect, because there are no dependencies on conversions. they're just here, hanging out, looking pretty, doing literally nothing ๐ iconic honestly
๐ธ EXAMPLES ๐ธ
to drop the conversion named myname:
DROP CONVERSION myname;
boom. gone. slay โจ
๐ COMPATIBILITY ๐
so here's the tea โ โ there is no DROP CONVERSION statement in the SQL standard. instead, the standard has a DROP TRANSLATION statement that goes along with the CREATE TRANSLATION statement, which is similar to the CREATE CONVERSION statement in PostgreSQL. so like, same energy, different name, iykyk ๐
๐ง SEE ALSO ๐ง
ALTER CONVERSION(ALTER_CONVERSION(7))CREATE CONVERSION(CREATE_CONVERSION(7))
go read those too, they're the prequel and the glow-up ๐
okay that's the whole page bestie, you ate that ๐๐
this has been PostgreSQL 18.6, dated 2026 โ DROP CONVERSION(7) โ mwah, take care of yourself, drink water, and don't drop conversions you don't own ๐ซถโจ
๐ฆ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 ยท PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 ยท PostgreSQL
- arch rolling: postgresql 18.6-4 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 ยท PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 ยท PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 ยท PostgreSQL
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms