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 1qyVnE-008t6x-EX for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Nov 2023 11:23:20 +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 1qyVnD-00Cz7v-2C for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Nov 2023 11:23:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyVnC-00Cz7m-OH for pgsql-bugs@lists.postgresql.org; Thu, 02 Nov 2023 11:23:18 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyVnA-004Jgc-Jl for pgsql-bugs@lists.postgresql.org; Thu, 02 Nov 2023 11:23:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=sPG0RboAaKMBzh0XtEi0qHBvIj1sicZN7DS0xywQuEY=; b=eL9qQg65Tg86iSac4dI9bDcCb0 C49ouKYTEe64BAT9aeEdjYI9bbLroXlP8RJ3jlcaIHfiYyn8kzPWuFqLeEN7PBLx+LxQ6PlIae0ZA MC2j4gKkN2JEb+4yJt5N7PEVxJgfp0zQndr+RVXehLgga8EMnEn6tNgOrBJS6pb+v1vk=; Received: from depesz by depesz.com with local (Exim 4.94.2) (envelope-from ) id 1qyVn8-000dYp-IH; Thu, 02 Nov 2023 12:23:14 +0100 Date: Thu, 2 Nov 2023 12:23:14 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Kyotaro Horiguchi Cc: kuroda.hayato@fujitsu.com, pgsql-bugs@lists.postgresql.org Subject: Re: Logical replication is missing block of rows when sending initial sync? Message-ID: Reply-To: depesz@depesz.com References: <20231102.101713.170587046871054404.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231102.101713.170587046871054404.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 02, 2023 at 10:17:13AM +0900, Kyotaro Horiguchi wrote: > At Mon, 30 Oct 2023 07:10:35 +0000, "Hayato Kuroda (Fujitsu)" wrote in > > I've tried, but I could not reproduce the failure. PSA the script what I did. > > I'm not well-versed in the details of logical replication, but does > logical replication inherently operate in such a way that it fully > maintains relationships between tables? If not, isn't it possible that > the issue in question is not about missing referenced data, but merely > a temporary delay? The problem is that date that appeared *later* was visible on the subscriber. Data that came earlier was visible too. Just some block of data got, for some reason, skipped. Best regards, depesz