Re: Replica string comparsion issue - Mailing list pgsql-general

From Peter Geoghegan
Subject Re: Replica string comparsion issue
Date
Msg-id CAH2-Wz=_YkpZbmxC1yAE-MZhYtwMGjVLe40VSC=kjfmooAQNuA@mail.gmail.com
Whole thread Raw
In response to Replica string comparsion issue  (Andrey Lizenko <lizenko79@gmail.com>)
List pgsql-general
On Wed, Jun 13, 2018 at 1:10 PM, Andrey Lizenko <lizenko79@gmail.com> wrote:
> I'm observing strange behaviour on comparing ::text field with string while
> quering replica.

The first thing to do here is to install amcheck on the replica, and
verify that the indexes are consistent with the replica's own notion
of how text sorts for the collation that is implicitly in use (the
database default):

https://www.postgresql.org/docs/current/static/amcheck.html

You can modify the example query to check the indexes that you're
interested in. I think that there is a very strong chance that the
replica has incompatible collation rules, given that it uses a totally
different OS.

-- 
Peter Geoghegan


pgsql-general by date:

Previous
From: Andrey Lizenko
Date:
Subject: Replica string comparsion issue
Next
From: Tom Lane
Date:
Subject: Re: Replica string comparsion issue