pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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 03:39:38 -0400
Message-ID: <809156.1595317178@sss.pgh.pa.us> (raw)
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>

Thomas Kellerer <shammat@gmx.net> writes:
> Tom Lane schrieb am 20.07.2020 um 20:04:
>> 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.

If this is a PG bug, it should be possible to reproduce it with
completely random/generated data.  The key ingredient that you
have and the rest of us don't is the process and timing by which
the primary key values are introduced.

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

Hmmm ... I do not recall any recent bug fixes that seem to match
this symptom, but replication isn't a part of the code that
I'm the world's best expert on.  In any case, we do offer as
standard advice that you should reproduce a problem on the latest
minor release before filing a bug report.

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <809156.1595317178@sss.pgh.pa.us>
Permalink:  ../809156.1595317178@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/809156.1595317178@sss.pgh.pa.us

 · 

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