Re: Wrong results with equality search using trigram index and non-deterministic collation
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-hackers@lists.postgresql.org
Date: 2024-09-19T12:53:52Z
Lists: pgsql-hackers
On Tue, 2024-09-17 at 08:00 +0200, Laurenz Albe wrote: > Using a trigram index with an non-deterministic collation can > lead to wrong query results: > [...] > > I don't know what the correct fix would be. Perhaps just refusing to use > the index for equality comparisons with non-deterministic collations. Looking into fixing that, how can you tell the optimizer to consider a certain index only for certain collations? Yours, Laurenz Albe