I'm wondering if maybe full-text indexing would fits your needs.. It transliterates words into their base word and indexes them. Then when testing against the index, your query is also transliterated into the base words so that matches may be found.
If you're looking for true "starts with" or "ends with" functionality, I'd have to do some digging but seems possible.
289
u/little_blue_teapot Sep 24 '20
The major highlights:
Space savings and performance gains from de-duplication of B-tree index entries
Improved performance for queries that use aggregates or partitioned tables
Better query planning when using extended statistics
Parallelized vacuuming of indexes
Incremental sorting