pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey Lizenko <lizenko79@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Replica string comparsion issue
Date: Wed, 13 Jun 2018 16:38:01 -0400
Message-ID: <32729.1528922281@sss.pgh.pa.us> (raw)
In-Reply-To: <CADKuZZD=N6P11z0YXOSJ+JtrJhMOg7nMB6DRmcz_ZURE09_xow@mail.gmail.com>
References: <CADKuZZD=N6P11z0YXOSJ+JtrJhMOg7nMB6DRmcz_ZURE09_xow@mail.gmail.com>

Andrey Lizenko <lizenko79@gmail.com> writes:
> I'm observing strange behaviour on comparing ::text field with string while
> quering replica.

These symptoms seem consistent with the theory that the replica's index
for that column (symbols_aggregates_uniq) is corrupt.  I think your
casts etc are just serving to defeat selection of an indexscan.

Why it's corrupt, I dunno, but you might try forcing a reindex on the
master.

			regards, tom lane




view thread (5+ messages)  latest in thread

Message-ID: <32729.1528922281@sss.pgh.pa.us>
Permalink:  ../32729.1528922281@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32729.1528922281@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, lizenko79@gmail.com
  Subject: Re: Replica string comparsion issue
  In-Reply-To: <32729.1528922281@sss.pgh.pa.us>
  References: <CADKuZZD=N6P11z0YXOSJ+JtrJhMOg7nMB6DRmcz_ZURE09_xow@mail.gmail.com> <32729.1528922281@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox