Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2w4z-001SXU-Bx for pgsql-admin@arkaria.postgresql.org; Tue, 14 Nov 2023 16:15:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r2w4x-009FA1-MA for pgsql-admin@arkaria.postgresql.org; Tue, 14 Nov 2023 16:15:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2w4N-009A5k-KT for pgsql-admin@lists.postgresql.org; Tue, 14 Nov 2023 16:15:19 +0000 Received: from mailout.easywhatthehell.com ([2620:49:8:1007::400] helo=mailout.easymail.ca) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2w4K-005Yhl-AZ for pgsql-admin@lists.postgresql.org; Tue, 14 Nov 2023 16:15:17 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id F23C2E467E; Tue, 14 Nov 2023 16:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1699978515; bh=YkJRFHahJAuW0oC74vqqTv+G05pnS0FZGRrx9mFKSvk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=rKnRoW1Kegw33Eu9YF9rT806erqvTBFY6txkxjBqu6qWjeR1f1zArF8winNXbpWOV 1hTHEGCzWSYieWOjabhi3gjY03cRUZFqa3khXbozOZLZJw3Sa+SJCAY4NpVvWyAm5w 5/IzYN4yOM5zhWitYR4+Ngk9sNg45qDVqYKfHzupCBakJFQzOhLkmhD1RRyn5JFcrb l9Kkzx40sN2/P8wmBTf7qXCQNNdNbI0rEzbmZq7xPCJbVfWZuA9aldYpofwObowoV9 j3cyjx0c9cIVhIorhbpv93+WkCq2GgF3tkhyk+hng1CeYAKEA4jLGZ9sDUjb3qu/LV vN1m33mgnr+Hg== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ugkRGWfy6-oC; Tue, 14 Nov 2023 16:15:14 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 83840E4630; Tue, 14 Nov 2023 16:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1699978514; bh=YkJRFHahJAuW0oC74vqqTv+G05pnS0FZGRrx9mFKSvk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=3zvf2eh4fsPwysSynHZYklFY0wQ74Q8KzUp5Cd0Y6MpxHkVQ/8GfR4NCxZYR0mGDF WQ9ZMj/ObZjy5LetPZTrxFj2yU03nTrgbpL89+AgHom05a9kHyoWz0dmbO5hh7xFz4 BNSb3mQcJDhCZG0P/IB022Yw5D2PP0K5qFx84FpXvRFU31800ERmiH6bEaILtwMtJs xndyvunXN8PtuL+eS4oC0TppXA/SWkf3EDfADnZR7BeX1gwQe2W/Ft+Gfq4CxKFpLP SeIZFpGJly/VDcSRgi+Nk5GOLzTvU3lMdPscvYJxL3T9NwQ76cKWduoDJQWAQvyx8F Om3PJ8YPuyzQQ== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: Dupe Key Violations in Logical Replication with PKs in Place From: Scott Ribe In-Reply-To: Date: Tue, 14 Nov 2023 09:15:03 -0700 Cc: Ron , pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <401c360a-ff4c-4904-8608-22b24b2179d6@gmail.com> <5181C120-C6B2-4186-BB67-2B22660D5A7B@elevated-dev.com> To: Don Seiler X-Mailer: Apple Mail (2.3774.200.91.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 14, 2023, at 9:12=E2=80=AFAM, Don Seiler wrote: >=20 > That's precisely why I'm using logical replication for this migration. = The indexes are new on the subscriber server. Re-indexing should only be = necessary if I were to do physical replication/restore onto a 22.04 = server, no? As far as I know, you are right about that--I missed the part where you = said logical replication onto new clusters.=