From: Laurenz Albe <laurenz.albe@cybertec.at>
To: rihad <rihad@mail.ru>
To: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices
Date: Fri, 22 Dec 2017 15:55:00 +0100
Message-ID: <1513954500.2384.17.camel@cybertec.at> (raw)
In-Reply-To: <d0f4eecb-8e89-40aa-d66e-afdb716dc227@mail.ru>
References: <e6f53eeb-ef46-3095-cd34-88550904fa02@mail.ru>
<1513948189.2384.3.camel@cybertec.at>
<d0f4eecb-8e89-40aa-d66e-afdb716dc227@mail.ru>
rihad wrote:
> On 12/22/2017 05:09 PM, Laurenz Albe wrote:
> > 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?
>
> It looks like it.
>
> $ ll /lib/libc.so.7
> -r--r--r-- 1 root wheel 1647104 Jun 19 2017 /lib/libc.so.7
>
> this never was a major/minor OS upgrade, just whatever FreeBSD patch
> releases included.
>
> > Then the problem could come from a modified collation.
> > Compare https://www.postgresql.org/message-id/CB4D1C6BAA80CF146CB0D4F2%40eje.credativ.lan
>
> de (German) was just an example, the inability to find matching rows
> affected other languages like fr or even en, too.
> It does look like a collation issue, though.
That would be the best thing, because it would mean that there is no
PostgreSQL bug or hardware problem, and REINDEX will fix the problem.
Yours,
Laurenz Albe
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, rihad@mail.ru
Subject: Re: pg_upgrading to 10.1 corrupts (varchar,varchar) UNIQUE indices
In-Reply-To: <1513954500.2384.17.camel@cybertec.at>
References: <e6f53eeb-ef46-3095-cd34-88550904fa02@mail.ru> <1513948189.2384.3.camel@cybertec.at> <d0f4eecb-8e89-40aa-d66e-afdb716dc227@mail.ru> <1513954500.2384.17.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