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 1przI0-0000o2-5a for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Apr 2023 10:55:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1przHy-0001OS-VC for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Apr 2023 10:55:50 +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 1przHy-0001OJ-La for pgsql-hackers@lists.postgresql.org; Thu, 27 Apr 2023 10:55:50 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1przHw-002A5R-08 for pgsql-hackers@lists.postgresql.org; Thu, 27 Apr 2023 10:55:49 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f315712406so18242545e9.0 for ; Thu, 27 Apr 2023 03:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682592946; x=1685184946; 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=F15AFNt1JnGlxf8IaObwp+aj6+32bdzY6E1J9aIQrLU=; b=C9vSxFSRohRWqxRuM0mGupo3rsM+iW5kdMucNhMAEdMWpR7ZdUubqGq8I8unq+fi4m Eht7ARF1V6eIgDgzcMnuk550dED/FjXXF7ruTH/ec3+qjxUpeLvN7ruEcTcONNObo3PS rFChJKpLa0+WxcU2FcwJA7rEkbg0OpvAIaG/K1eS22ZZbGWY7qSLy5IqjkuEiTd8twsq OSxnxn7KbQrmFOTbHIb2ZPLS6JLJu0SfUj5ChYKpEJX+fZ7IzDGoCvay5gv0Sn86gvk9 TfR6E52jTheSoQJlSLhTZe3F/12RmBszwzjAgophiCI6ZTPi+t98pHK/9tCQfFXny/kH Hy9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682592946; x=1685184946; 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=F15AFNt1JnGlxf8IaObwp+aj6+32bdzY6E1J9aIQrLU=; b=N005KH96BrkdahYetLTEr15SfRTV+j5aFrUbg39J+gOGnMh1ecGeERIH0BZqhyajvt aJUzHDvbbgpNcYOvdJwcYA18uzWmnCRv6Oet2Is8VrQFKAJora9vKazTIvyBMHBvaQE8 yAK6GdGNm/nPr2Bt43+e4sfN2hJPgra12YRuZB6sNbMDX7YejVdum6eGhoVYBzACD855 VDZE/aJhEbwBkHPtOdrhcbxMYjljh/KXiZ7j+J+D/VreeVVy+N0Lxp82mYtYRrT5kQOC V+qUX4ehRgdpF85+bEJ2rXv8q4kRUxch+CcFSPnw7Dj1oPyp1jW0X5nFOt8C7ePBtKeY jlAA== X-Gm-Message-State: AC+VfDz52M/NVx4ij2Yw7lfunJ1wIaSnn5dk31GezEYwqlnQ50CcT2NY Iadv98GA17el4Ae6dYa9ejE= X-Google-Smtp-Source: ACHHUZ72KVSRpzY4mykHZ3h8axRJSbdZ0k6dFWdXjLj/N8aRbIX0qE49TX05NCDDHTXgUVLNgAxh5A== X-Received: by 2002:a5d:66d2:0:b0:2ef:eb45:2317 with SMTP id k18-20020a5d66d2000000b002efeb452317mr3930447wrw.9.1682592946541; Thu, 27 Apr 2023 03:55:46 -0700 (PDT) Received: from [192.168.29.250] ([54.239.6.185]) by smtp.gmail.com with ESMTPSA id p1-20020a05600c204100b003ef64affec7sm20887722wmg.22.2023.04.27.03.55.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Apr 2023 03:55:46 -0700 (PDT) Message-ID: <7f194571-5089-ae6f-4709-b56d35d7101f@gmail.com> Date: Thu, 27 Apr 2023 12:54:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: Add two missing tests in 035_standby_logical_decoding.pl Content-Language: en-US To: Amit Kapila Cc: Alvaro Herrera , vignesh C , PostgreSQL Hackers References: <20230426102751.pkfs7gwvvrgta6p3@alvherre.pgsql> <19d8fa0d-e840-66eb-f5bc-4c3f9594ec8b@gmail.com> <274b31be-5833-f3ea-1da6-8afd50897ac4@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 On 4/27/23 11:54 AM, Amit Kapila wrote: > On Thu, Apr 27, 2023 at 1:05 PM Drouvot, Bertrand > wrote: >> >> On 4/27/23 5:37 AM, Amit Kapila wrote: >>> On Wed, Apr 26, 2023 at 4:41 PM Drouvot, Bertrand >>> wrote: >>> >>> +When in recovery, the default value of target_lsn is $node->lsn('replay') >>> +instead. This is needed when the publisher passed to >>> wait_for_subscription_sync() >>> +is a standby node. >>> >>> I think this will be useful whenever wait_for_catchup has been called >>> for a standby node (where self is a standby node). I have tried even >>> by commenting wait_for_subscription_sync in the new test then it fails >>> for $node_standby->wait_for_catchup('tap_sub');. So instead, how about >>> a comment like: "When in recovery, the default value of target_lsn is >>> $node->lsn('replay') instead which ensures that the cascaded standby >>> has caught up to what has been replayed on the standby."? >>> >> >> I did it that way because wait_for_subscription_sync() was the first case I had >> to work on but I do agree that your wording better describe the intend of the new >> code. >> >> Changed in V7 attached. >> > > Pushed. > Thanks! Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com