↑↓ select ↵ open ⌫ change scope Open full search

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

System Catalogs / System catalogs

pg_collation

Read the PG 18 manual

The 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.

ColumnTypeDescription / reference
oidoidNOT NULLRow identifier
collnamenameNOT NULLCollation name (unique per namespace and encoding)
collnamespaceoidNOT NULLThe OID of the namespace that contains this collation
pg_namespace.oid
collowneroidNOT NULLOwner of the collation
pg_authid.oid
collprovidercharNOT NULLProvider of the collation: d = database default, b = builtin, c = libc, i = icu
collisdeterministicboolNOT NULLIs the collation deterministic?
collencodingint4NOT NULLEncoding 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 8
  1. 16 → 17 changed
  2. 15 → 16 changed
  3. 14 → 15 changed
  4. 13 → 14 reworded
  5. 11 → 12 changed
  6. 9.6 → 10 changed
  7. 9.5 → 9.6 reworded
  8. 9.0 → 9.1 added

Definition snapshot: english-manuals:51b04926cc5064b3e254e387109… · English manual source