pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Ernesto Hernández-Novich <emhnemhn@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: PG 9.6.20 -- query misbehaves in replica
Date: Sat, 14 Nov 2020 16:07:36 +0100
Message-ID: <CABUevExt+Owrd7WcWae10cKnbDmupU8aMtbgiOwnV-7q9PP55Q@mail.gmail.com> (raw)
In-Reply-To: <9da8208c61333d155a7328b107f75b85a0bf832e.camel@gmail.com>
References: <9bd869ddbddc71721de1d9d6a2710a1cfec5e98b.camel@gmail.com>
	<CABUevEzyDgu=1EPe7Sf8gzK2i0ZexLSziBRMQjeO0vXP2b7vaA@mail.gmail.com>
	<9da8208c61333d155a7328b107f75b85a0bf832e.camel@gmail.com>

On Sat, Nov 14, 2020 at 1:10 AM Ernesto Hernández-Novich <emhnemhn@gmail.com>
wrote:

> On Sat, 2020-11-14 at 00:59 +0100, Magnus Hagander wrote:
> > On Sat, Nov 14, 2020 at 12:17 AM Ernesto Hernández-Novich <
> > emhnemhn@gmail.com> wrote:
> [...]
> > > After updating from 9.6.19 to 9.6.20, we noticed the query was not
> > > working on D.
> [...]
> > > Looks like a the 9.6.20 over Debian 10 is the culprit, but I have
> > > nothing else to work on.
> >
> > These issues are almost certainly because of the glibc locale changes
> > between Debian 9 and Debian 10, and not because of the PostgreSQL
> > upgrade.
> >
> > If you have master and standby on different glibc versions (so debian
> > 9 vs 10), all text based indexes can behave differently. All the
> > nodes must run the same version for this to work. So in this
> > scenario, you need to reinstall B and D with debian 9, or you need to
> > upgrade your other nodes to debian 10 (and if you do that, then you
> > have to reindex the master node once it has been upgraded).
>
> I agree on the locale matching and will try your suggestion.
>
> I must say the Debian 10 machines were working just fine with PG 9.6.19
> for over two months or so. We noticed the issue *just* this week after
> upgrading from 9.6.19 onto 9.6.20.
>

Most likely they weren't, but they looked like they were. It could be that
the problem wasn't triggered until now, but it could also be that it
"sometimes worked and sometimes didn't", and you just didn't notice -- I've
come across several installations that had exactly that problem.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;

view thread (6+ messages)

Message-ID: <CABUevExt+Owrd7WcWae10cKnbDmupU8aMtbgiOwnV-7q9PP55Q@mail.gmail.com>
Permalink:  ../CABUevExt+Owrd7WcWae10cKnbDmupU8aMtbgiOwnV-7q9PP55Q@mail.gmail.com/
Also on:    postgresql.org/message-id/CABUevExt+Owrd7WcWae10cKnbDmupU8aMtbgiOwnV-7q9PP55Q@mail.gmail.com

 · 

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-bugs@postgresql.org
  Cc: magnus@hagander.net, emhnemhn@gmail.com
  Subject: Re: PG 9.6.20 -- query misbehaves in replica
  In-Reply-To: <CABUevExt+Owrd7WcWae10cKnbDmupU8aMtbgiOwnV-7q9PP55Q@mail.gmail.com>
  References: <9bd869ddbddc71721de1d9d6a2710a1cfec5e98b.camel@gmail.com> <CABUevEzyDgu=1EPe7Sf8gzK2i0ZexLSziBRMQjeO0vXP2b7vaA@mail.gmail.com> <9da8208c61333d155a7328b107f75b85a0bf832e.camel@gmail.com> <CABUevExt+Owrd7WcWae10cKnbDmupU8aMtbgiOwnV-7q9PP55Q@mail.gmail.com>

* 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