Re: Index based search have issues with 11.20

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hafeez Rahim <hafeez(dot)rahim(at)mindcurv(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Index based search have issues with 11.20
Date: 2023-10-17 20:18:52
Message-ID: 2906198.1697573932@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hafeez Rahim <hafeez(dot)rahim(at)mindcurv(dot)com> writes:
> Issue :

> One of the table query not woks when string values are filtered with =
> clause
> where as the query works with like clause using '%' flag or using
> trim(column)
> below are query examples describes the problem

You've not really provided enough detail, but I'm going to guess
that your OS update included a change in collation definitions
that left any indexes on text columns essentially corrupt.
The LIKE queries probably weren't affected because they didn't
rely on indexes.

Reindexing the indexes should have been enough to fix it.
See

https://wiki.postgresql.org/wiki/Locale_data_changes

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2023-10-17 20:19:58 Re: Index based search have issues with 11.20
Previous Message Jason Grammenos 2023-10-17 19:59:00 RE: Postgresql HA cluster