select open change scope Open full search

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

FUNCTIONS / STRING FUNCTIONS AND OPERATORS

Performs case folding of the input string according to the collation.

Signatures & examples

casefold ( text ) → text
Performs case folding of the input string according to the collation. Case folding is similar to case conversion, but the purpose of case folding is to facilitate case-insensitive matching of strings, whereas the purpose of case conversion is to convert to a particular cased form. This function can only be used when the server encoding is UTF8.
Version history 1
  1. PG 17 → 18added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source