cologne_pg
cologne_pg · Cologne phonetics function for PostgreSQL built with pgrx.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100855 | cologne_pg | cologne_pg | 0.0.0 | FTS | MIT | Rust |
PostgreSQL · 11, 12, 13, 14, 15, 16
Usage
Sources:
cologne_pg exposes the Cologne phonetics algorithm as cologne(text), producing a phonetic code intended for approximate matching of German-language names.
Phonetic equality is a candidate-generation heuristic, not identity. Different names can share a code, spellings from other languages may behave poorly, and transliteration, punctuation, casing, Unicode normalization, and version changes can affect results. Always retain the original string and apply an additional ranking or human-review step.
If the function is used in an expression index or generated column, pin the exact implementation and rebuild dependent data after any behavior change. Test representative German names, diacritics, empty strings, NULL, very long input, and adversarial collision rates before using the result for search.