pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Václav Steiner <steiner.vaclav@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Different query result, maybe bad index
Date: Wed, 24 Feb 2021 12:59:18 +0100
Message-ID: <d92931a935e2f574eccd4640b6b60046f7c506f2.camel@cybertec.at> (raw)
In-Reply-To: <CAJZf+Ug9XwBELE+SRhwF2h2queqDEzXnJ5YkQH8DNzg3=z52hw@mail.gmail.com>
References: <CAJZf+Ug9XwBELE+SRhwF2h2queqDEzXnJ5YkQH8DNzg3=z52hw@mail.gmail.com>

On Wed, 2021-02-24 at 12:50 +0100, Václav Steiner wrote:
> We have three servers running postgres 9.6, master and two slaves feeded by streaming replication.
> On of those slaves we are getting different query results. The replica was recreated from scratch, but problem persists.
> 
> If set enable_indexscan='off' and set enable_bitmapscan='off' we get correct result.
> It looks like problem with some index...?
> 
> Can anybody saw such behaviour? 

If the problem persist when you rebuild the standby, I suspect that the servers
are running different C libraries or C library versions, so that the collations
with the same name behave slightly differently.

That could lead to the observed behavior with indexes on string data types.

Make sure to use the same C library version on both systems.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <d92931a935e2f574eccd4640b6b60046f7c506f2.camel@cybertec.at>
Permalink:  ../d92931a935e2f574eccd4640b6b60046f7c506f2.camel@cybertec.at/
Also on:    postgresql.org/message-id/d92931a935e2f574eccd4640b6b60046f7c506f2.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, steiner.vaclav@gmail.com
  Subject: Re: Different query result, maybe bad index
  In-Reply-To: <d92931a935e2f574eccd4640b6b60046f7c506f2.camel@cybertec.at>
  References: <CAJZf+Ug9XwBELE+SRhwF2h2queqDEzXnJ5YkQH8DNzg3=z52hw@mail.gmail.com> <d92931a935e2f574eccd4640b6b60046f7c506f2.camel@cybertec.at>

* 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