Re: Logical replication from 11.x to 12.x and "unique key violations"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Thomas Kellerer <shammat(at)gmx(dot)net>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Logical replication from 11.x to 12.x and "unique key violations"
Date: 2020-07-20 18:04:45
Message-ID: 578923.1595268285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Ashmead 2020-07-20 18:11:24 Re: Logical replication from 11.x to 12.x and "unique key violations"
Previous Message Tom Lane 2020-07-20 17:58:19 Re: Improvement for query planner? (no, not about count(*) again ;-))