pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 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: Tue, 21 Jul 2020 07:46:53 +0200
Message-ID: <6f6b1a8b-1e2c-e971-1b1f-d7320e81f0a5@gmx.net> (raw)
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>

Tom Lane schrieb am 20.07.2020 um 20:04:
> 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?

I'll try, but this is a production system.
Extracting the necessary anonymous data will be tricky.

Is there any chance the version difference might cause this?
And a slightly outdated 11.x at that?

Thomas





view thread (17+ messages)  latest in thread

Message-ID: <6f6b1a8b-1e2c-e971-1b1f-d7320e81f0a5@gmx.net>
Permalink:  ../6f6b1a8b-1e2c-e971-1b1f-d7320e81f0a5@gmx.net/
Also on:    postgresql.org/message-id/6f6b1a8b-1e2c-e971-1b1f-d7320e81f0a5@gmx.net

 · 

reply

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: shammat@gmx.net
  Subject: Re: Logical replication from 11.x to 12.x and "unique key violations"
  In-Reply-To: <6f6b1a8b-1e2c-e971-1b1f-d7320e81f0a5@gmx.net>
  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> <6f6b1a8b-1e2c-e971-1b1f-d7320e81f0a5@gmx.net>

* 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