Re: Simple Query Doesn't Even with Data

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Scott Macri <Scott(at)bitsnbytes(dot)io>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Simple Query Doesn't Even with Data
Date: 2022-03-10 08:20:27
Message-ID: 20220310082027.iaduvd63rkqcptj2@jrouhaud
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On Wed, Mar 09, 2022 at 08:40:45PM -0500, Scott Macri wrote:
>
> If I do a select * without a where clause I get the expected results.
> However, when I execute the following select statement I was astonished
> to see no results come back.
>
> SELECT *
> FROM public.map_table
> WHERE company_letters = 'abcdefg';

It looks like an index corruption, a REINDEX of that table should fix the
problem.

Did you update your system recently, which
may have updated your libc/libicu version, or replicated data over different OS
version (which could lead to the same problem)? If yes, it's a known problem
and you have to reindex all indexes that uses collatable datatypes afterwards.

You can look at https://wiki.postgresql.org/wiki/Locale_data_changes for more
details about that problem.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ken Tanzer 2022-03-10 08:30:46 Re: Simple Query Doesn't Even with Data
Previous Message M Tarkeshwar Rao 2022-03-10 05:33:08 Could not read certificate file from while upgrading to PostgreSQLClient 12.9