]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropcollation.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropcollation.txt
1
2 DROP COLLATION
3
4    DROP COLLATION — remove a collation
5
6 Synopsis
7
8 DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP COLLATION removes a previously defined collation. To be able to
13    drop a collation, you must own the collation.
14
15 Parameters
16
17    IF EXISTS
18           Do not throw an error if the collation does not exist. A notice
19           is issued in this case.
20
21    name
22           The name of the collation. The collation name can be
23           schema-qualified.
24
25    CASCADE
26           Automatically drop objects that depend on the collation, and in
27           turn all objects that depend on those objects (see
28           Section 5.15).
29
30    RESTRICT
31           Refuse to drop the collation if any objects depend on it. This
32           is the default.
33
34 Examples
35
36    To drop the collation named german:
37 DROP COLLATION german;
38
39 Compatibility
40
41    The DROP COLLATION command conforms to the SQL standard, apart from the
42    IF EXISTS option, which is a PostgreSQL extension.
43
44 See Also
45
46    ALTER COLLATION, CREATE COLLATION