pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Nick Cleaton <nick@cleaton.net>
Cc: hali19790320@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16593: pg_upgrade make corrupt UK indexes
Date: Wed, 26 Aug 2020 18:57:30 -0400
Message-ID: <20200826225730.GD13370@momjian.us> (raw)
In-Reply-To: <CABUevEyf1yShkWOHyZwbxpLAh4hYigBzQqs_Nc+k58mquZ5M2w@mail.gmail.com>
References: <16593-875efda911c9b799@postgresql.org>
	<CAFgz3ktnxyo8xc7whgjk+M05vsg3z=FBJm1wasBke8fhHSr0Tw@mail.gmail.com>
	<CABUevEyf1yShkWOHyZwbxpLAh4hYigBzQqs_Nc+k58mquZ5M2w@mail.gmail.com>

On Wed, Aug 26, 2020 at 09:49:00AM +0200, Magnus Hagander wrote:
> 
> 
> On Wed, Aug 26, 2020 at 7:38 AM Nick Cleaton <nick@cleaton.net> wrote:
> 
>     On Tue, 25 Aug 2020 at 23:55, PG Bug reporting form <noreply@postgresql.org
>     > wrote:
> 
>         We upgrade from 9.6 Centos7 to 12.3 Centos 8
> 
> 
>     This from https://www.postgresql.org/docs/12/amcheck.html#id-1.11.7.11.9
>     might be relevent:
> 
>     > Comparisons of datums of a collatable type like text must be immutable
>     (just as all comparisons used for B-Tree index scans must be immutable),
>     which implies that operating system collation rules must never change.
>     Though rare, updates to operating system collation rules can cause these
>     issues. More commonly, an inconsistency in the collation order between a
>     master server and a standby server is implicated, possibly because the 
>     major operating system version in use is inconsistent
> 
> 
> And in particular also see https://wiki.postgresql.org/wiki/Locale_data_changes
> , which shows that the step from Centos7 to Centos8 is one that causes this
> problem. You need to reindex all text/varchar indexes when you  make that
> upgrade.

And we should have a script ready for people to do this.  :-)

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






view thread (5+ messages)  latest in thread

Message-ID: <20200826225730.GD13370@momjian.us>
Permalink:  ../20200826225730.GD13370@momjian.us/
Also on:    postgresql.org/message-id/20200826225730.GD13370@momjian.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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, magnus@hagander.net, nick@cleaton.net, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16593: pg_upgrade make corrupt UK indexes
  In-Reply-To: <20200826225730.GD13370@momjian.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