DROP_CONVERSION(7pg17)
π DROP_CONVERSION β like, the whole manual page, bestie
okay so this is the DROP_CONVERSION page from the PostgreSQL 17.11 docs, and honestly? She's short, she's sweet, she's giving "one job and she does it." Let's get into it β¨
π NAME π
DROP_CONVERSION β remove a conversion. that's it. that's the vibe. π
π¦ SYNOPSIS π¦
DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
look at her. so clean. so unbothered. πΈ
β¨ DESCRIPTION β¨
so DROP CONVERSION removes a conversion that was, like, previously defined. gone. deleted. no cap. π
but here's the catch, and it's a real one: to be able to drop a conversion, you must own the conversion. own it. like legally. if it's not yours, this command is literally not gonna work for you, i don't make the rules π«Ά
π PARAMETERS π
IF EXISTSβ do not throw an error if the conversion doesn't exist. instead it just issues a notice, which is the polite way of being like "bestieβ¦ there was nothing there π"nameβ the name of the conversion. and yes, the conversion name can be schema-qualified, so you can be all specific about it π―CASCADE,RESTRICTβ okay so these key words literally do not have any effect, because there are no dependencies on conversions. they're just here hanging out. main character energy with zero lines tho π
π EXAMPLES π
to drop the conversion named myname:
DROP CONVERSION myname;
slay. done. next π
π COMPATIBILITY π
so there is no DROP CONVERSION statement in the SQL standard. nope. not a thing. π
but there is a DROP TRANSLATION statement, and it 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))
and that's the whole page!! π§ this little icon was brought to you by PostgreSQL 17.11, dated 2026 β drop a π for the docs team, fr fr π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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