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 1pHELy-0005Jd-AR for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jan 2023 01:32: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 1pHELx-0006hP-6h for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jan 2023 01:32:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHELw-0006gq-UA for pgsql-hackers@lists.postgresql.org; Mon, 16 Jan 2023 01:32:00 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pHELt-0001bS-5R for pgsql-hackers@postgresql.org; Mon, 16 Jan 2023 01:31:59 +0000 Received: by mail-pj1-x102e.google.com with SMTP id cx21-20020a17090afd9500b00228f2ecc6dbso5641544pjb.0 for ; Sun, 15 Jan 2023 17:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=4/MCNEjN8bruWjDQ69R3+2MfIJTq+IPzSf/xyw9CCgk=; b=XXdETHzOhKvwTgYfZdjIsETMDEBCucISDyfbzPA9WcLt7FIV1J0kQe0LHcBBQKfqTA CpxcL+ThDCM2Uk7/1r8ZZHPYs3b8eekvSiPAN3d60TQIjRpI66QdHyN7xj4s3X7I0uqI jBiLnLOtLZ76hdZBRb9Iavt3MIa3p3zHByWr61ZAsPizLCoKKuNzfU9KE0oBA2AakrvN 8ztslxfnCCIXXnJt14jcAmom+THUaeKuL01AEu+oT1ndNf6+HmxiBIoqA6zBuCyrY3OY l/JotCMnFSQebQb0lg1COCirDO9lQj0lUoctvR7l+rAI+DUwhXJwZeDHog5sTMtHRblq 7gcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4/MCNEjN8bruWjDQ69R3+2MfIJTq+IPzSf/xyw9CCgk=; b=2j4QpZfhYvZ8kQGtC7105q2xR7b73N/obX7BKhwzV/pCdwWKDa89vnHxo8hRi3R+gB Xcirh80FfneDtNdaWetoQpGRLeZWLYc/DpoM+/II8Kxye86Dr/fDEs4GvUAEgU/SzNyv /6sKX4qkmyNJGH4zHc2FB3JCUZWUFAls7OrTGdGsQYNJuMLAu3xH8LcizjrtvA02T2M4 xYyOE5LLghObyBKhrf/SmlNYPayJQX02xafwL3DmMUjekdz9tXrLPa13CpSopoNHDaeA 44Hc6twhycLVw/08NIHUU2w8NKIOf15o5J/StNrzjzpjd96X46kdEFAJjgPDBxqZZtwS G0tA== X-Gm-Message-State: AFqh2koSHGTA4o9egB9Jiq8V/YOZ/HYOGKo+uTaM9LFdl501gjWVSztE Ql/Tn3hEt7Vpa5Xf3qRPe/djGsI+Tkc= X-Google-Smtp-Source: AMrXdXu7cZ7rtxmT33qNVkEkbXytQeoVXTgVNqrfhJyK7WJ7Z4OwLNSHPjoScbjQDlzUBG1IB0J9bg== X-Received: by 2002:a17:903:41cd:b0:192:dfdb:9ebe with SMTP id u13-20020a17090341cd00b00192dfdb9ebemr62240531ple.10.1673832716261; Sun, 15 Jan 2023 17:31:56 -0800 (PST) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id q14-20020a17090311ce00b00189c536c72asm18043403plh.148.2023.01.15.17.31.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 15 Jan 2023 17:31:55 -0800 (PST) Date: Mon, 16 Jan 2023 10:31:53 +0900 (JST) Message-Id: <20230116.103153.304248162331209247.horikyota.ntt@gmail.com> To: amit.kapila16@gmail.com Cc: kuroda.hayato@fujitsu.com, dilipbalaut@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Exit walsender before confirming remote flush in logical replication From: Kyotaro Horiguchi In-Reply-To: References: User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Fri, 13 Jan 2023 16:41:08 +0530, Amit Kapila wrote in > Okay, but what happens in the case of physical replication when > synchronous_commit = remote_apply? In that case, won't it ensure that > apply has also happened? If so, then shouldn't the time delay feature > also cause a similar problem for physical replication as well? As written in another mail, WalSndDone doesn't honor synchronous_commit. In other words, AFAIS walsender finishes not waiting remote_apply. The unapplied recods will be applied at the next startup. I didn't confirmed that behavior for myself, though.. regards. -- Kyotaro Horiguchi NTT Open Source Software Center