Summary
The catalog pg_collation describes the available collations, which are essentially mappings from an SQL name to operating system locale categories. See collation for more information.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_collation system catalog exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
oidoid
Row identifiercollnamename
Collation name (unique per namespace and encoding)collnamespaceoidreferencespg_namespace.oid
The OID of the namespace that contains this collationcollowneroidreferencespg_authid.oid
Owner of the collationcollproviderchar
Provider of the collation: d = database default, b = builtin, c = libc, i = icucollisdeterministicbool
Is the collation deterministic?collencodingint4
Encoding in which the collation is applicable, or -1 if it works for any encodingcollcollatetext
LC_COLLATE for this collation object. If the provider is not libc, collcollate is NULL and colllocale is used instead.collctypetext
LC_CTYPE for this collation object. If the provider is not libc, collctype is NULL and colllocale is used instead.colllocaletext
Collation provider locale name for this collation object. If the provider is libc, colllocale is NULL; collcollate and collctype are used instead.collicurulestext
ICU collation rules for this collation objectcollversiontext
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.
Related catalogs
This object references the following other system catalogs:
collnamespace→pg_namespacecollowner→pg_authid
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_collation.