Re: Index created with PGSQL11 on ubuntu 18.04 corrupt with PGSQL11 on ubuntu 20.04 - Mailing list pgsql-general

From Magnus Hagander
Subject Re: Index created with PGSQL11 on ubuntu 18.04 corrupt with PGSQL11 on ubuntu 20.04
Date
Msg-id CABUevEzrZGav4RZ1kWGqu1d9Hc5Hu5Q_k9RPCoAGQaueQ9TwAw@mail.gmail.com
Whole thread Raw
In response to Index created with PGSQL11 on ubuntu 18.04 corrupt with PGSQL11 on ubuntu 20.04  (unilynx <unilynx@gmail.com>)
Responses Re: Index created with PGSQL11 on ubuntu 18.04 corrupt with PGSQL11 on ubuntu 20.04  (unilynx <unilynx@gmail.com>)
List pgsql-general
On Tue, Feb 2, 2021 at 11:20 AM unilynx <unilynx@gmail.com> wrote:
>
> I'm using postgresql 11 builds from http://apt.postgresql.org/pub/repos/apt/
> - I've got a database created under Ubuntu 18.04, and recently updated to
> Ubuntu 20.04. These are all docker builds

This is a known problem when upgrading Ubuntu (and most other Linux
distributions, but it depends on which version of course -- btu for
Ubuntu LTS the problem is triggered when going to 20.04). If you have
any indexes on text-type columns, they need to be reindexed.

See https://wiki.postgresql.org/wiki/Locale_data_changes

Note that this is triggered by the Ubuntu upgrade, not by upgrading
PostgreSQL -- that's why it happend even when you keep using the same
PostgreSQL version.

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



pgsql-general by date:

Previous
From: Jiří Pavlovský
Date:
Subject: Re: libpq and mysterious "invalid byte sequence for encoding UTF8".
Next
From: unilynx
Date:
Subject: Re: Index created with PGSQL11 on ubuntu 18.04 corrupt with PGSQL11 on ubuntu 20.04