From: Tom Lane <tgl@sss.pgh.pa.us>
To: susanacastela@hotmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16938: Duplicate records with same Primary Key
Date: Mon, 22 Mar 2021 14:22:48 -0400
Message-ID: <641364.1616437368@sss.pgh.pa.us> (raw)
In-Reply-To: <16938-be6ffd557b1f523e@postgresql.org>
References: <16938-be6ffd557b1f523e@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> We're running an instance of postgres 13.2 and some days ago we noticed
> duplicated rows with the same primary key.
If the key column is of a text type, you might have gotten bit by
operating-system-level changes of sorting rules, which would effectively
make indexes on text columns corrupt [1]. If so, reindexing is the
appropriate fix. There's work in progress to try to notice this sort
of problem automatically, but it's not done yet.
regards, tom lane
[1] https://wiki.postgresql.org/wiki/Locale_data_changes
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: tgl@sss.pgh.pa.us, susanacastela@hotmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16938: Duplicate records with same Primary Key
In-Reply-To: <641364.1616437368@sss.pgh.pa.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