Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxtsA-0007p6-0H for pgsql-general@arkaria.postgresql.org; Tue, 21 Jul 2020 15:08:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxts8-00063k-VB for pgsql-general@arkaria.postgresql.org; Tue, 21 Jul 2020 15:08:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxts7-00063d-4y for pgsql-general@lists.postgresql.org; Tue, 21 Jul 2020 15:08:00 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxts3-0000HF-BW for pgsql-general@lists.postgresql.org; Tue, 21 Jul 2020 15:07:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4D5235C0076; Tue, 21 Jul 2020 11:07:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 21 Jul 2020 11:07:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=Q 4XbDTe4N0yVab9UmfwVflr3+PbRftPa1omdOKrWCoY=; b=FFvPxurnV21C0HEF0 Bw6Gl1XKuvXaZ4UZcPuZedi6IAU/n8MFZLD+20d8Xttbjnt7kTSJ9qS4EQqipOSF IxwgwxDK7gaTCh/tVlICpJ3xW1z1Bioh/UCHH649MGQEEwsM1yMO9Glm3utXWkg4 UwZWYqQj6rnd5PJsov9njZmijy8XPZKUzOxeMay0D1QSisiHt1UrRPgpriVVTm4E 3hPMjZcvJubP/ArnD426+3sV6BFJEhdRICOzZ3fu5Yt5wChV2kdT5tUROoLC2zfN s+HjyiDF/T00KiqVqiN2SklgOdHn3CQCc2PreGGWKNJN7/pzZp0KcWmT1mKIsLFo fd3uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Q4XbDTe4N0yVab9UmfwVflr3+PbRftPa1omdOKrWC oY=; b=fHoOgQDMQgdqZPwBEouPG9OQPXMCd8Z5KviG4TQ7wrOs4ahEiTg/wwGFA dr0cxeYqRQb6LW2+16KA0RmaUNVWeIrpygbRZKth3AWnbr994xL/tIrgBmYJ3d/r iP8tGMhb1dRLsNhoGxkXYn1Q9JRlEuKRLoytmZNK6c7Lp7EXEJbxMZLjJ2xofxJk In5z7wRurOQPGN14roGXA7IVdboVgz0McSkbPUMnWOfU/EbQ5Y0CsYgYir8+RfRO RBxeLmfxKEuIBxoC30LAY6dS8YhBy/fNdwIcGAqGMun+Ks8MctQ9vb0x14fadgZA T2A65fxxHUrYi+nJSOztnG2nd6gFA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrgeeigdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetjedvteffje euvdelieeffeehuedthffgvdfhhffhkedvudevgedvjedufefgveenucfkphepjeehrddu jedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id B4B4C328005D; Tue, 21 Jul 2020 11:07:51 -0400 (EDT) Subject: Re: Logical replication from 11.x to 12.x and "unique key violations" To: Thomas Kellerer , pgsql-general@lists.postgresql.org References: <76af9b83-74cc-88b5-23a7-0462774f472d@gmx.net> <229a51af-0860-0ab4-5c91-3f0c197ba682@aklaver.com> <8beac400-5c2c-560e-668c-e7c0c81e3b9c@gmx.net> From: Adrian Klaver Message-ID: <4b444d07-241c-b327-df64-da2ea15ed93b@aklaver.com> Date: Tue, 21 Jul 2020 08:07:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8beac400-5c2c-560e-668c-e7c0c81e3b9c@gmx.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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