↑↓ select ↵ open ⌫ change scope Open full search

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

Functions / System Information Functions And Operators

to_regcollation

Read the PG 18 manual

Translates a textual collation name to its OID.

Reading PG 18current·documented in 8 of 27 versions, 13 to 20

Signatures & examples

to_regcollation ( text ) → regcollation
Translates a textual collation name to its OID. A similar result is obtained by casting the string to type regcollation (see Section 8.19); however, this function will return NULL rather than throwing an error if the name is not found.
Version history 2
  1. 15 → 16 changed
  2. 12 → 13 added

Definition snapshot: b7bd9cda · English manual source