select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM CATALOGS

The catalog pg_collation describes the available collations, which are essentially mappings from an SQL name to operating system locale categories.

Kind
System catalogs
Columns in this snapshot
12
Definition source
English manual

Columns 12

ColumnTypeDescription / reference
oidoidRow identifier
collnamenameCollation name (unique per namespace and encoding)
collnamespaceoidThe OID of the namespace that contains this collation
pg_namespace.oid
collowneroidOwner of the collation
pg_authid.oid
collprovidercharProvider of the collation: d = database default, b = builtin, c = libc, i = icu
collisdeterministicboolIs the collation deterministic?
collencodingint4Encoding in which the collation is applicable, or -1 if it works for any encoding
collcollatetextLC_COLLATE for this collation object. If the provider is not libc, collcollate is NULL and colllocale is used instead.
collctypetextLC_CTYPE for this collation object. If the provider is not libc, collctype is NULL and colllocale is used instead.
colllocaletextCollation provider locale name for this collation object. If the provider is libc, colllocale is NULL; collcollate and collctype are used instead.
collicurulestextICU collation rules for this collation object
collversiontextProvider-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 9
  1. PG 16 → 17changed
  2. PG 15 → 16changed
  3. PG 14 → 15changed
  4. PG 13 → 14changed
  5. PG 11 → 12changed
  6. PG 9.6 → 10changed
  7. PG 9.5 → 9.6changed
  8. PG 9.2 → 9.3changed
  9. PG 9.0 → 9.1added

Definition snapshot: english-manuals:1c81ca250043dabe485e190d140… · English manual source