DROP_COLLATION(7pg15)
π 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 π
ALTER COLLATION(ALTER_COLLATION(7))CREATE COLLATION(CREATE_COLLATION(7))
made with π from PostgreSQL 15.19, dated 2026 β bye bestie, go drop those collations responsibly ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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