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 1r401S-006xAK-VY for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Nov 2023 14:40:42 +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 1r401R-00ETAZ-EO for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Nov 2023 14:40:41 +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 1r401R-00ETAR-5o for pgsql-bugs@lists.postgresql.org; Fri, 17 Nov 2023 14:40:41 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r401O-0061ji-0Q for pgsql-bugs@lists.postgresql.org; Fri, 17 Nov 2023 14:40:39 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-53e07db272cso3084553a12.3 for ; Fri, 17 Nov 2023 06:40:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1700232036; x=1700836836; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BYptN66b8Sj+9h7nYvQSJHxYocQDyqXVdkeiGSrL8gg=; b=LPQSWtk3R8LsYj9sqD3Dol4sSrzYjcpxYzsvwxSUotsQkFz6wbhHCFGylLqZi98j5n BUCyRsj1s1tJuSqj196CGhIt2Fk3OdIdx9Fs432z925Y/1khUugZ36w4PpWoSHh6+NjC mFBsXSLVpet7gmVmcmKQSrAIq61/4QIZ7Eodt8QVC9Q4ui8cX7wRrfEQeZs/fDn8Wcal qqbECFEEprgH/LXysYvQMK1GbSNHc8G1hlD1+ah6h7EUj1oNOns4fsTER7icPOiAw6XJ 7x/wso7O2Q6JVQWtl/ClrTcxQxXDWdnND5NO2jLjONBq6XAOjm0IpSOkFSzsFI/vmovQ G2sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700232036; x=1700836836; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BYptN66b8Sj+9h7nYvQSJHxYocQDyqXVdkeiGSrL8gg=; b=GveX3c/pMyfpn4rBzBhoV7xuUU2G8tY5hkhDHEnvMkcRMDOtS6nWxw5RW/4p8tenCR xVRCbB7TetWbH4wKawmUBy4q8uPZjbRO8QgAkwxIzpbpuinmc1urdXLvOlBhIol6AbEP XZwJxZPh5fOgl1WNz+kr3IF1xzsXn9HtDdbopRuJc2zg4qBupGarAtaF3M82Xm/cQ323 9dvKKUuoz3riq7sb5khHFBGXG8ovKiqfudmFq2cD7Ms83Ql5inxuyNy9NMVTLEKc8JjV 22L4O3HEJVLIJTLFg8ZcWgQfOUvb3j7MScOoAwV6jkih1aA+9OLY30XzDK7Ej8WXGIm7 0Wug== X-Gm-Message-State: AOJu0YzLZgnM7aJM8vuinVsGQ/5wtAKHiNgKN28nWR5DmNIZKKPkjh23 CaBmLhStEKeqPlx5uF/+Oz7DxA== X-Google-Smtp-Source: AGHT+IF80rqSNm1PHpEK+S8MCJoktMiE+KiR8OqFbnUq+n3Fts2qKzKdA1kf36vd/TM1NEu4KqjAWQ== X-Received: by 2002:a17:906:5189:b0:9f8:2f30:d74f with SMTP id y9-20020a170906518900b009f82f30d74fmr1391945ejk.7.1700232036132; Fri, 17 Nov 2023 06:40:36 -0800 (PST) Received: from [10.137.0.17] (srv1.mobissw.com. [89.235.0.226]) by smtp.gmail.com with ESMTPSA id v2-20020a1709060b4200b00977eec7b7e8sm858450ejg.68.2023.11.17.06.40.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Nov 2023 06:40:35 -0800 (PST) Message-ID: Date: Fri, 17 Nov 2023 15:40:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Logical replication is missing block of rows when sending initial sync? Content-Language: en-US To: "Hayato Kuroda (Fujitsu)" , "'depesz@depesz.com'" Cc: Amit Kapila , Kyotaro Horiguchi , "pgsql-bugs@lists.postgresql.org" References: <20231102.101713.170587046871054404.horikyota.ntt@gmail.com> <2a638962-7a62-abd6-d9a4-3c322ec2a06d@enterprisedb.com> From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/15/23 02:41, Hayato Kuroda (Fujitsu) wrote: > Dear Tomas, Depesz, > >> >>> I'll try reproducing this locally over the weekend. Should I use the >>> test_1030.sh script that you shared a week ago, or do I need to do >>> something more? >> >> That question is probably not to me, but to Hayato Kuroda > > Just FYI - As I posted, this script could not reproduce the issue. We may use the same table definition > but I have not tried yet. I will let you know if I succeeded to reproduce. > FYI I think I've reproduced the issue (with a different script), I've started a thread on pgsql-hackers: https://www.postgresql.org/message-id/de52b282-1166-1180-45a2-8d8917ca74c6%40enterprisedb.com Obviously, I can't be sure it's exactly the same issue, but the symptoms seem to match what Depesz reported (gaps in data etc.). I don't know what the root cause is, or fix. But there's more info (and scripts) in the hackers thread. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company