From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Thomas Kellerer <shammat@gmx.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Logical replication from 11.x to 12.x and "unique key violations"
Date: Mon, 20 Jul 2020 14:04:45 -0400
Message-ID: <578923.1595268285@sss.pgh.pa.us> (raw)
In-Reply-To: <a9dc89d5-a646-bb7c-0f31-ea3c8dd460a1@aklaver.com>
References: <cfb19a91-e878-6994-4fda-3c64631f72e6@gmx.net>
<76af9b83-74cc-88b5-23a7-0462774f472d@gmx.net>
<578230.1595267248@sss.pgh.pa.us>
<a9dc89d5-a646-bb7c-0f31-ea3c8dd460a1@aklaver.com>
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> I'm probably missing something, but would that not result in a 'key not
> found' type of error. The OP is seeing "duplicate key value violates
> unique constraint xxx_pkey". To me that indicates a doubling up of at
> least some of the data replication.
[ squint... ] Sorry, I completely misread the error condition.
Yeah, duplicate keys does seem odd here. Can you provide a self
contained example?
regards, tom lane
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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, shammat@gmx.net
Subject: Re: Logical replication from 11.x to 12.x and "unique key violations"
In-Reply-To: <578923.1595268285@sss.pgh.pa.us>
References: <cfb19a91-e878-6994-4fda-3c64631f72e6@gmx.net> <76af9b83-74cc-88b5-23a7-0462774f472d@gmx.net> <578230.1595267248@sss.pgh.pa.us> <a9dc89d5-a646-bb7c-0f31-ea3c8dd460a1@aklaver.com> <578923.1595268285@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