Re: duplicate primary key - Mailing list pgsql-general

From Michael Paquier
Subject Re: duplicate primary key
Date
Msg-id CAB7nPqTT4YW5h0cfbWGz=K_YPGH5NmDe2jvQG6kTU1gdr1W_yA@mail.gmail.com
Whole thread Raw
In response to Re: duplicate primary key  (Alexander Pyhalov <alp@rsu.ru>)
List pgsql-general
On Thu, Nov 23, 2017 at 1:28 AM, Alexander Pyhalov <alp@rsu.ru> wrote:
> On 11/22/17 07:24 PM, Magnus Hagander wrote:
>> What is your postgres version, and what's the "version history" of
>> upgrades
>> from it (talking pg_upgrade upgrades, not dump/reload upgrades). This
>> might
>> be fallout from old bugs thaat have been known to cause this type of
>> problem.
>>
>
> It's PostgreSQL 9.5.10 (64bit), running on Ubuntu 16.04.
> Last major update was done as full dump/restore.

You may as well be facing what is called the freeze-the-dead bug,
where a VACUUM FREEZE brings back dead tuples:
https://www.postgresql.org/message-id/E5711E62-8FDF-4DCA-A888-C200BF6B5742@amazon.com
There is a patch in the works for it that should land in the next
round of minor releases.
-- 
Michael


pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: How clear the cache on postgresql?
Next
From: Adam Tauno Williams
Date:
Subject: Re: How clear the cache on postgresql?