Re: Replica string comparsion issue

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Andrey Lizenko <lizenko79(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replica string comparsion issue
Date: 2018-06-13 20:24:16
Message-ID: CAH2-Wz=_YkpZbmxC1yAE-MZhYtwMGjVLe40VSC=kjfmooAQNuA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 13, 2018 at 1:10 PM, Andrey Lizenko <lizenko79(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-06-13 20:38:01 Re: Replica string comparsion issue
Previous Message Andrey Lizenko 2018-06-13 20:10:18 Replica string comparsion issue