pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Logical replication from 11.x to 12.x and "unique key violations"
Date: Tue, 21 Jul 2020 08:07:50 -0700
Message-ID: <4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.com> (raw)
In-Reply-To: <8beac400-5c2c-560e-668c-e7c0c81e3b9c@gmx.net>
References: <cfb19a91-e878-6994-4fda-3c64631f72e6@gmx.net>
	<76af9b83-74cc-88b5-23a7-0462774f472d@gmx.net>
	<229a51af-0860-0ab4-5c91-3f0c197ba682@aklaver.com>
	<8beac400-5c2c-560e-668c-e7c0c81e3b9c@gmx.net>

On 7/20/20 10:42 PM, Thomas Kellerer wrote:
> Adrian Klaver schrieb am 20.07.2020 um 16:45:
>> On 7/20/20 7:22 AM, Thomas Kellerer wrote:
>>>> I have a strange error when using logical replication between a 11.2


> 
>> Where is "xxx_pkey" coming from, e.g. sequence?
> 
> No, as mentioned, those are varchar(20) columns.
> The values are generated by the application (no default value defined for the column)

Aah I see my mistake I was going off your follow up question not the 
original post. In that original post though you had the PK containing a 
varchar(100) column. Can we see the table schema and the PK definition 
for at least one of the tables that threw an error?




-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)  latest in thread

Message-ID: <4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.com>
Permalink:  ../4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.com/
Also on:    postgresql.org/message-id/4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.com

 · 

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: adrian.klaver@aklaver.com, shammat@gmx.net
  Subject: Re: Logical replication from 11.x to 12.x and "unique key violations"
  In-Reply-To: <4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.com>
  References: <cfb19a91-e878-6994-4fda-3c64631f72e6@gmx.net> <76af9b83-74cc-88b5-23a7-0462774f472d@gmx.net> <229a51af-0860-0ab4-5c91-3f0c197ba682@aklaver.com> <8beac400-5c2c-560e-668c-e7c0c81e3b9c@gmx.net> <4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.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