postgresql_16:7.1.57 CREATE COLLATION
PostgreSQL 16 > Reference > SQL Commands > CREATE COLLATION
define a new collation
CREATE COLLATION [ IF NOT EXISTS ] name (
[ LOCALE = locale, ]
[ LC_COLLATE = lc_collate, ]
[ LC_CTYPE = lc_ctype, ]
[ PROVIDER = provider, ]
[ DETERMINISTIC = boolean, ]
[ RULES = rules, ]
[ VERSION = version ]
)
CREATE COLLATION [ IF NOT EXISTS ] name FROM existing_collation
CREATE COLLATION [ IF NOT EXISTS ] name (
[ LOCALE = locale, ]
[ LC_COLLATE = lc_collate, ]
[ LC_CTYPE = lc_ctype, ]
[ PROVIDER = provider, ]
[ DETERMINISTIC = boolean, ]
[ RULES = rules, ]
[ VERSION = version ]
)
CREATE COLLATION [ IF NOT EXISTS ] name FROM existing_collation
Subsections
- postgresql_16:7.1.57.1 Description
- postgresql_16:7.1.57.2 Parameters
- postgresql_16:7.1.57.3 Notes
- postgresql_16:7.1.57.4 Examples
- postgresql_16:7.1.57.5 Compatibility
- postgresql_16:7.1.57.6 See Also