↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / System Catalogs

pg_collation

The catalog pg_collation describes the available collations, which are essentially mappings from an SQL name to operating system locale categories. See Section 23.2 for more information.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
catalog
lang
en
measured attributes
true
metadata release
18.6
runtime columns
oid, collname, collnamespace, collowner, collprovider, collisdeterministic, collencoding, collcollate, collctype, colllocale, collicurules, collversion
runtime verified
false
source
english-manual

Definition PG 18

The catalog pg_collation describes the available collations, which are essentially mappings from an SQL name to operating system locale categories. See Section 23.2 for more information.

Catalog columns

ColumnTypeNullabilityDescription
oidoidNot nullRow identifier
collnamenameNot nullCollation name (unique per namespace and encoding)
collnamespaceoidNot nullThe OID of the namespace that contains this collation
collowneroidNot nullOwner of the collation
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
collcollatetextNullableLC_COLLATE for this collation object. If the provider is not libc, collcollate is NULL and colllocale is used instead.
collctypetextNullableLC_CTYPE for this collation object. If the provider is not libc, collctype is NULL and colllocale is used instead.
colllocaletextNullableCollation provider locale name for this collation object. If the provider is libc, colllocale is NULL; collcollate and collctype are used instead.
collicurulestextNullableICU collation rules for this collation object
collversiontextNullableProvider-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.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:89a25fe4fd84fa4da10a61a0c0a0422b0c82b194366a214d1b9d2b6f91b4f6c8

Text language: en · catalog-bilingual-repair:89a25fe4fd84fa4da10a61a0c0a0422b0c82b194366a214d1b9d2b6f91b4f6c8