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 1pkQTW-00008U-UI for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2023 14:20:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pkQTV-00066v-RY for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2023 14:20:29 +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 1pkQTV-00066m-Fz for pgsql-hackers@lists.postgresql.org; Thu, 06 Apr 2023 14:20:29 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pkQTS-0001KW-T7 for pgsql-hackers@postgresql.org; Thu, 06 Apr 2023 14:20:28 +0000 Received: by mail-wm1-x331.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so25296775wmq.2 for ; Thu, 06 Apr 2023 07:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680790825; 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=azTLhW6NDgdTw0PR2oZOnj1R6qinU5/JBcGvH70SnK8=; b=MmFMOMxgbvX01CCR5L+yTNccC2Dz7dK/XrQLTW44/gu8tLUAHu/VyeOUTjFa0p7bYe r7MGLoZGEzf3w3ZTzU2LVq7MQLZ4Byf7BUPfhfA4u4cnJ5Faqn8vCJk39Zt7rvOpU0Bu azL31wXGvKg4kz6gkB/grmX/ayOEG/59jfMTpusmz95detpBtMVC938CIrLni5iG6gpF cXPUWSEiA029YOUgJt153FhIlcU3K4FLHBwFfhcIvAfcpsmI/CsQhbGSMQOXnHF5aXI1 6ioxQvAhdMAmgIjZemiiST9/kmaaS1V8fTDYsZgclyCs9IqGRkRZbUrBTLos4ynGAE3Z aQ0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680790825; 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=azTLhW6NDgdTw0PR2oZOnj1R6qinU5/JBcGvH70SnK8=; b=0LEP0FxQs8FqjJ91MA/KhiGPaCaeznvWuu9LeqpfjcgJTGClWN5qYMk0wwM7pcuIV7 mf3dRaNxAtPumL/uTIDFlTZAik8y7j5WwGbhWcLz6XyA46qvJnn9UYPhV5lNM8riF62R CcsltHlQycmJ79PJX1Ji/tWARYTLzIIQlzj7G1L0EGwM9mqhprh90VLbMXAX4kAgYtft RlfW2oQ141LvuH8BncYl1+dpYvi2E7KQsRNUOVLM0XXX2DBq+DzRwHcSJl0ynZrEyX5y G19y5nlxXdFL6tN3tti/8wQ9nZcj+fWnwPCqJAoFspE/wK1T4h/d+6oXH4VdvsgCmN3o eQDQ== X-Gm-Message-State: AAQBX9emMs3IdM5yVmjn6NZ6lFwBhFgmP3IGs+SHFgg0vH1VssNlJoYd 9JRBkZ2Y81TiEkuUW5yqLfA= X-Google-Smtp-Source: AKy350YX2BYnEFYX/ofB6FNWfC6dCBBVMnmjORkeSZjC3OrHkzi3lbYmnvZpO3SnkzUzQNvBcPvjfQ== X-Received: by 2002:a1c:720e:0:b0:3f0:39ab:347c with SMTP id n14-20020a1c720e000000b003f039ab347cmr7644524wmc.23.1680790824548; Thu, 06 Apr 2023 07:20:24 -0700 (PDT) Received: from [192.168.0.121] ([54.239.6.190]) by smtp.gmail.com with ESMTPSA id c24-20020a7bc858000000b003ef5b011b30sm1776573wml.8.2023.04.06.07.20.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 07:20:24 -0700 (PDT) Message-ID: <2b002763-f39f-0814-e98e-c48989ddc3c3@gmail.com> Date: Thu, 6 Apr 2023 16:20:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: Minimal logical decoding on standbys Content-Language: en-US To: Amit Kapila Cc: Alvaro Herrera , Jeff Davis , Andres Freund , Robert Haas , Thomas Munro , Ibrar Ahmed , Amit Khandekar , fabriziomello@gmail.com, tushar , Rahila Syed , pgsql-hackers References: <20230330095449.47yz2q4mn27t6xgl@alvherre.pgsql> <68a47e4c-f4bb-45ae-28be-938af60b203c@gmail.com> <8c6e7670-3914-35d1-7977-34f60e598477@gmail.com> <1903ca9b-1dc9-20a6-404a-d4c460c7bdcc@gmail.com> From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 4/6/23 3:39 PM, Amit Kapila wrote: > On Thu, Apr 6, 2023 at 6:32 PM Drouvot, Bertrand > wrote: >> >> >> I don't think it could be possible to create logical walsenders on a standby if >> AllowCascadeReplication() is not true, or am I missing something? >> > > Right, so why to even traverse walsenders for that case? What I was > imagining a code is like: > if (AllowCascadeReplication()) > WalSndWakeup(switchedTLI, true); > > Do you see any problem with this change? Not at all, it looks good to me. > > Few more minor comments on 0005 > ============================= > 0005 > 1. > + > + Take a snapshot of running transactions and write this to WAL without > + having to wait bgwriter or checkpointer to log one. > > /wait bgwriter/wait for bgwriter > > 2. > +use Test::More tests => 67; > > We no more use the number of tests. Please refer to other similar tests. > Thanks! Will update 0005. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com