DROP_CONVERSION(7pg16)

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

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


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