DROP_CONVERSION(7pg13)
okay so bestie, welcome to the DROP_CONVERSION(7) page from the PostgreSQL 13.23 Documentation β weβre talking about removing a conversion, and yes, itβs giving very specific permissions energy π
β¨ NAME β¨
DROP_CONVERSION β remove a conversion π
π¦ SYNOPSIS π¦
DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
πΈ DESCRIPTION πΈ
DROP CONVERSION removes a previously defined conversion. Lowkey important: to be able to drop a conversion, you must own the conversion. No ownership? No drop, bestie. Periodt. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the conversion does not exist. In this case, a notice is issued. So itβs like, βokay, sheβs not here, moving onβ instead of a whole dramatic error πnameβ the name of the conversion. The conversion name can be schema-qualified, iykyk β¨CASCADEβ these key words do not have any effect, since there are no dependencies on conversions. So sheβs just there, vibing π«ΆRESTRICTβ same deal: these key words do not have any effect, since there are no dependencies on conversions. Iconic but functionally irrelevant π
π 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. So yeah β PostgreSQL is doing its own cute thing here π¦
π SEE ALSO π
ALTER CONVERSION(ALTER_CONVERSION(7))CREATE CONVERSION(CREATE_CONVERSION(7))
mwah π β this little manual moment comes from PostgreSQL 13.23, dated 2025, and the page is DROP CONVERSION(7). slay and stay schema-qualified, bestie π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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