DROP_CONVERSION(7pg13)

πŸ“¦ version 13.23, in opensuse-leap 16.0

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 πŸ‘‘


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