System Catalogs / System catalogs
pg_collation
Read the PG 18 manualThe catalog pg_collation describes the available collations, which are essentially mappings from an SQL name to operating system locale categories.
Reading PG 18current·documented in 17 of 24 versions, 9.1 to 20
- Kind
- System catalogs
- Columns in this snapshot
- 12
- Definition source
- English manual
- Metadata snapshot
- 18.6
Columns 12
As listed in the PostgreSQL 18 manual.
| Column | Type | Description / reference |
|---|---|---|
oid | oidNOT NULL | Row identifier |
collname | nameNOT NULL | Collation name (unique per namespace and encoding) |
collnamespace | oidNOT NULL | The OID of the namespace that contains this collation pg_namespace.oid |
collowner | oidNOT NULL | Owner of the collation pg_authid.oid |
collprovider | charNOT NULL | Provider of the collation: d = database default, b = builtin, c = libc, i = icu |
collisdeterministic | boolNOT NULL | Is the collation deterministic? |
collencoding | int4NOT NULL | Encoding in which the collation is applicable, or -1 if it works for any encoding |
collcollate | text | LC_COLLATE for this collation object. If the provider is not libc, collcollate is NULL and colllocale is used instead. |
collctype | text | LC_CTYPE for this collation object. If the provider is not libc, collctype is NULL and colllocale is used instead. |
colllocale | text | Collation provider locale name for this collation object. If the provider is libc, colllocale is NULL; collcollate and collctype are used instead. |
collicurules | text | ICU collation rules for this collation object |
collversion | text | Provider-specific version of the collation. This is recorded when the collation is created and then checked when it is used, to detect changes in the collation definition that could lead to data corruption. |
Column history across versions
Version history 8
Definition snapshot: english-manuals:51b04926cc5064b3e254e387109… · English manual source