Re: B-tree Index corruption - Mailing list pgsql-bugs

From Tom Lane
Subject Re: B-tree Index corruption
Date
Msg-id 1317056.1700493394@sss.pgh.pa.us
Whole thread Raw
In response to B-tree Index corruption  (Filip Sedlák <filip@sedlakovi.org>)
Responses Re: B-tree Index corruption  (Filip Sedlák <filip@sedlakovi.org>)
List pgsql-bugs
=?UTF-8?Q?Filip_Sedl=C3=A1k?= <filip@sedlakovi.org> writes:
> We're on version 15.3 and I see some index misbehaviour fixed in 15.5 
> but nothing on btree over text values. I saw some posts about glibc 
> upgrade changing collation rules but I don't think it's our case because 
> we see it with plain ASCII values.

Sadly, you're wrong about that; see the example at

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

If you did an OS upgrade across a glibc collation change, it's best to
assume all your indexes on textual columns are corrupt and REINDEX
them.

> More importantly, we last upgraded 
> the major OS version in June but I was able to find a row missing from 
> the index that was inserted a few weeks ago.

It can take awhile before the results of inconsistent sorting order
become obvious, but the state of the index will progressively degrade
as new entries get inserted into the wrong subtree.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #18208: ts_headline MinWords and MaxWords cannot be set to the same value
Next
From: Daniel Migowski
Date:
Subject: AW: BUG #18205: Performance regression with NOT NULL checks.