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 1prD3a-0004n4-2B for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Apr 2023 07:25:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1prD3Y-0003oh-KO for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Apr 2023 07:25:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prD3Y-0003oY-AN for pgsql-hackers@lists.postgresql.org; Tue, 25 Apr 2023 07:25:44 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1prD3W-004wfH-JL for pgsql-hackers@lists.postgresql.org; Tue, 25 Apr 2023 07:25:43 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f09b4a156eso35380645e9.3 for ; Tue, 25 Apr 2023 00:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682407541; x=1684999541; 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=XolhphzEqZWvQYdpsLCN0ylfCv6dFKrYgguAcQoX75Q=; b=ZjhoWloG6KAMOtkPWihcioj5hxhk3cYLuFRWAD82soYjrtR20k+3oLbUkstzDvAcAX 1junCB76MBSr7BEtw2HYlVbcw03u9qkPrUI4klp2ORd9v4ydbrXr8fXG2bPbrywId97t EZrowaZkoGMfbfHcOuAFEuH44RPIjJSXmlGKTJBlzuSTVWkPF28W/g1W1HvK5lBJFuh9 S5w46TrL4yBnEA7JE0MgNI01ouAzGp6W7ZE1kE+DS+rpQ2McuPKtZNop5mLIPTXqD7we 3w9pVmF1kvIAxzBJsK3C8/Wp2MqQKYU6X+Ocg2BK5Vi5g2zqjaqK4gh2zi9gNzg8mcTj VwyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682407541; x=1684999541; 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=XolhphzEqZWvQYdpsLCN0ylfCv6dFKrYgguAcQoX75Q=; b=cX6UVnHqIBNB3BuSFzvhi/Gcr3gM/LVxe7jLV6aqaq1zU3onyMvR7JK6iXb5k6UrZw IfTooFyaz/vly1mU4/zkrhEzy9zwkCM75FdDlBVts9LvI286ODHoG0tZUB1R+6K4nBKl 1IHuAnp4pctgNgcmBgyMcULb8xVuGlGBBXSbfqhGS1JEqrPa+0KTXtPnbzPeABaq4Hbb UC7HzcwYgCVeTNKEFr3qRk+ZFdubQkyvIljxZ16mx/eD4luQ4GGUY5tLg/S6SJYAdHl7 osA659inG7B99gXvSgoHWiO2MYWjHYWR2Ah2VPig52RGo9KMmRIvV1TOUl7oTz8//1H0 b1Ng== X-Gm-Message-State: AAQBX9c5h453+AZPh6bmSOTPPvoy7C+9cjUtva0oUIBxwWheGMT/GXli 4KqMfzq5F7KuFNvgEuX4Fjg= X-Google-Smtp-Source: AKy350ZN/NVJtZh26BMfxwxfbGKyxvKx69Gc9foc7VpWqwClkwsNEalL41MtfpfoDx9W7ASITFj9Eg== X-Received: by 2002:a05:600c:378f:b0:3f1:73c8:3a6d with SMTP id o15-20020a05600c378f00b003f173c83a6dmr9773417wmr.12.1682407541361; Tue, 25 Apr 2023 00:25:41 -0700 (PDT) Received: from [192.168.7.55] ([54.239.6.186]) by smtp.gmail.com with ESMTPSA id bg39-20020a05600c3ca700b003f09c34fa4csm17647487wmb.40.2023.04.25.00.25.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Apr 2023 00:25:40 -0700 (PDT) Message-ID: Date: Tue, 25 Apr 2023 09:25:39 +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.0 Subject: Re: Add two missing tests in 035_standby_logical_decoding.pl Content-Language: en-US To: Amit Kapila Cc: vignesh C , PostgreSQL Hackers References: <2fefa454-5a70-2174-ddbf-4a0e41537139@gmail.com> <9ab1827c-9a57-8c48-59b2-c5fb62c21be3@gmail.com> <74f80bc1-6b39-b2a8-c716-98beefb75e0b@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/25/23 6:43 AM, Amit Kapila wrote: > On Mon, Apr 24, 2023 at 5:38 PM Drouvot, Bertrand > wrote: >> >> We are waiting here at a maximum for 10 * $default_timeout (means 3 minutes) before >> we time out. Would you prefer to wait more than 3 minutes at a maximum? >> > > No, because I don't know what would be a suitable timeout here. Yeah, I understand that. On the other hand, there is other places that rely on a timeout, for example: - wait_for_catchup(), wait_for_slot_catchup(), wait_for_subscription_sync() by making use of poll_query_until. - wait_for_log() by setting a max_attempts. Couldn't we have the same concern for those ones? (aka be suitable on slower machines). > At > this stage, I don't have a good idea on how to implement this test in > a better way. Can we split this into a separate patch as the first > test is a bit straightforward, we can push that one and then > brainstorm on if there is a better way to test this functionality. > I created a dedicated v4-0002-Add-retained-WAL-test-in-035_standby_logical_deco.patch just shared up-thread. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com