Re: Wrong results with equality search using trigram index and non-deterministic collation

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Wrong results with equality search using trigram index and non-deterministic collation
Date: 2024-09-19 12:53:52
Message-ID: 19f3be32e8a7c0802b4ea89cf66c3345a4575313.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Florents Tselai 2024-09-19 12:57:00 Re: [PATCH] WIP: replace method for jsonpath
Previous Message Alexander Korotkov 2024-09-19 12:47:24 Re: pgsql: Implement pg_wal_replay_wait() stored procedure