↑↓ 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.

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

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. 17 → 18 added

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