DROP_COLLATION(7pg15)

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

πŸ’… DROP_COLLATION πŸ’…

okay bestie, this is the DROP_COLLATION page from the PostgreSQL 15.19 docs β€” manual name folded in, vibe check passed ✨. It’s all about removing a collation you previously defined. Let’s go 🫢

πŸ—‘οΈ NAME πŸ—‘οΈ

DROP_COLLATION β€” remove a collation πŸ’…

✨ SYNOPSIS ✨

DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]

🌸 DESCRIPTION 🌸

DROP COLLATION removes a previously defined collation. That’s the whole main-character move πŸ’–.

To be able to drop a collation, you must own the collation. no cap β€” ownership is the vibe check here πŸ‘‘

πŸŽ€ PARAMETERS πŸŽ€

  • IF EXISTS β€” do not throw an error if the collation does not exist. In that case, a notice is issued πŸ‘€.
  • name β€” the name of the collation. The collation name can be schema-qualified πŸ—‚οΈ.
  • CASCADE β€” automatically drop objects that depend on the collation, and in turn all objects that depend on those objects (see Section 5.14) πŸ’₯.
  • RESTRICT β€” refuse to drop the collation if any objects depend on it. This is the default πŸ›‘.

πŸ¦‹ EXAMPLES πŸ¦‹

To drop the collation named german:

DROP COLLATION german;

slay, gone πŸ’¨

🌈 COMPATIBILITY 🌈

The DROP COLLATION command conforms to the SQL standard, apart from the IF EXISTS option, which is a PostgreSQL extension. periodt ✨

πŸ‘‘ SEE ALSO πŸ‘‘


made with πŸ’– from PostgreSQL 15.19, dated 2026 β€” bye bestie, go drop those collations responsibly πŸŽ€πŸ’…

πŸ“¦ where this page comes from