DROP_DOMAIN(7pg16)

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

πŸ’– NAME πŸ’–

okay so this is DROP_DOMAIN β€” the remove-a-domain page from the 7pg16 manual. literally: remove a domain πŸŽ€

✨ SYNOPSIS ✨

DROP DOMAIN [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

πŸ¦‹ DESCRIPTION πŸ¦‹

DROP DOMAIN removes a domain. Only the owner of a domain can remove it. that's the rule, bestie β€” if you're not the owner, no domain-dropping for you πŸ™ˆ

πŸŽ€ PARAMETERS πŸŽ€

  • IF EXISTS β€” do not throw an error if the domain does not exist. A notice is issued in this case. so it's like β€œshe's not here, but we're not gonna make it a whole thing” πŸ’…
  • name β€” the name (optionally schema-qualified) of an existing domain. yes, schema-qualified is allowed, iykyk.
  • CASCADE β€” automatically drop objects that depend on the domain (such as table columns), and in turn all objects that depend on those objects (see Section 5.14). this is the full-send option 😭
  • RESTRICT β€” refuse to drop the domain if any objects depend on it. This is the default. cautious queen behavior πŸ‘‘

🌈 EXAMPLES 🌈

To remove the domain box:

DROP DOMAIN box;

πŸ’œ COMPATIBILITY πŸ’œ

This command conforms to the SQL standard, except for the IF EXISTS option, which is a PostgreSQL extension. standards girlie with one lil PostgreSQL extra ✨

🫢 SEE ALSO 🫢


okay that's a wrap, bestie. this page is from PostgreSQL 16.15, dated 2026, and it's literally the DROP DOMAIN(7) page. catch u later β€” go forth and drop domains responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from