DROP_DOMAIN(7pg16)
π 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 π«Ά
CREATE DOMAIN(CREATE_DOMAIN(7))ALTER DOMAIN(ALTER_DOMAIN(7))
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
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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