From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Сергей А. Фролов <sergey.frolov@smetarik.ru>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14940: Duplicated records inspite of primary key and unique constraint
Date: Fri, 1 Dec 2017 18:07:08 +0100
Message-ID: <73627a9c-9229-66fa-c285-1eaec1a9eaa2@2ndquadrant.com> (raw)
In-Reply-To: <e797507a-26cb-5efa-435b-f49d23cc916e@smetarik.ru>
References: <20171201124533.27099.26427@wrigleys.postgresql.org>
<affd00c7-d068-bfb9-41ce-57759c385390@2ndquadrant.com>
<e797507a-26cb-5efa-435b-f49d23cc916e@smetarik.ru>
Hi,
On 12/01/2017 04:19 PM, Сергей А. Фролов wrote:
> The database was created at october 2016 on PG 9.5.3 then
> backuped/restored into PG 9.6.5 and then backuped/restored into PG 9.6.6.
>
> I am sure that the ~10 problematic records were added on PG 9.6.5. and
> ~40 were added on PG 9.6.6.
>
By backup/restore you mean pg_dump? If that's the case, it's pretty sure
the duplicates happened on 9.6.6 (otherwise the restore would fail).
But that contradicts the 9.6.5 -> 9.6.6 upgrade, if your claim that 10
duplicates originate on 9.6.5 is correct.
BTW are you running vanilla PostgreSQL, or some of the EDB versions?
> The file systems is NTFS.
>
> Windows 10 runs as virtual machine under Hyper-V. Windows logs contains
> nothing suspicious on both.
>
No idea. My experience with modern Windows systems is minimal, but I
suppose it certainly shouldn't corrupt data in normal operation.
> I have wrote the script to generate select to check for duplicates all
> tables in all schemas - all other tables are OK.
>
> The only problem I observed - the PG dbugger hanged once and we had to
> kill related postgres process via taskmanager (killing session had no
> effect) , but I am shure that the killed session did not touch the
> problem table at all.
>
Not sure which debugger you mean, but again - killing a process should
not result in data corruption. It may cause the database to crash and
perform recovery, but that's about it.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, sergey.frolov@smetarik.ru
Subject: Re: BUG #14940: Duplicated records inspite of primary key and unique constraint
In-Reply-To: <73627a9c-9229-66fa-c285-1eaec1a9eaa2@2ndquadrant.com>
References: <20171201124533.27099.26427@wrigleys.postgresql.org> <affd00c7-d068-bfb9-41ce-57759c385390@2ndquadrant.com> <e797507a-26cb-5efa-435b-f49d23cc916e@smetarik.ru> <73627a9c-9229-66fa-c285-1eaec1a9eaa2@2ndquadrant.com>
* 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