Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: rihad <rihad(at)mail(dot)ru>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices
Date: 2017-12-22 13:09:49
Message-ID: 1513948189.2384.3.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

rihad wrote:
> Hi there, this is a reproducible error. We recently pg_upgraded our
> production database to 10.1 from 9.6.6. The upgrade runs fine with the
> suggestion to analyze all data.

[...]

> Trying to find data using the specified indices fails to find matching rows:

[...]

> reindexing the table fixes the issue:

Did you also upgrade the operating system or at least libc?

Then the problem could come from a modified collation.
Compare https://www.postgresql.org/message-id/CB4D1C6BAA80CF146CB0D4F2%40eje.credativ.lan

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edson Carlos Ericksson Richter 2017-12-22 13:29:39 Stand by server (9.6.6) with corrupt file
Previous Message Magnus Hagander 2017-12-22 13:09:45 Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices