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 1pmSi1-0008DB-KF for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Apr 2023 05:07:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pmSi0-0000cy-Ff for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Apr 2023 05:07:52 +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 1pmShz-0000cn-VT for pgsql-hackers@lists.postgresql.org; Wed, 12 Apr 2023 05:07:52 +0000 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pmShx-0004bn-EP for pgsql-hackers@postgresql.org; Wed, 12 Apr 2023 05:07:50 +0000 Received: by mail-yb1-xb32.google.com with SMTP id h198so17021885ybg.12 for ; Tue, 11 Apr 2023 22:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1681276069; x=1683868069; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=9tOIbYFSdnkRFHS8eK0p2ysG+F68FeMJpP28UvQiK2w=; b=HY24J96nAQRyFE2kVFjqUwp8KlkdNQ0yUoLGPIkzAoA/87LRg/0rE6p7hQFE3MPBT3 sQJFFZNo8TDY9zM9/MslJhjueZs05IapSg5PmZj5saS1zetx6nCTaj/cPeHS602QgE1u wiRayn/gdOQjqXvrdVYQd45P2ANn4pMytO35k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681276069; x=1683868069; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9tOIbYFSdnkRFHS8eK0p2ysG+F68FeMJpP28UvQiK2w=; b=HuuUa3JKupWhXni/p6tRw2weTyjHP0G10D3jufVHQ2hfnWaXkX91jrKVE6mLWQpXZ8 FV5xIT/6qV65+gPZ0XuI5o1SNtg3nqMWOPvIsqqVdYrzkpUj/MHQIx9teULBrRdBu64d dAyaOnbbInh+/yCZ2xrwtVQKCEmklzmofL7zlHZ7P4t7q/vEM1YG2oChErhrs5E8uYF8 inInunFkG3iMWjViLdWJ+VDZDW/mVub3/s0ucVCZ6yjzNqGoFTEjN8imJkHGDgUhWeHp kN3Rrez8ezRpY/1aTSzSHw5I+WdVPgcTF51B1oDkfk4OCbIR01pfu6ugvtwSnbyrHVZd CeQw== X-Gm-Message-State: AAQBX9cscq4onc5qpHbH+XG4uFJsUT+A4dTHxg7yF7AuFqyU/2t4uVT2 kpnnjFXFR1PMbMRfl0lSbzhO4g== X-Google-Smtp-Source: AKy350bndEWfpLZv30n1wlplkLKl3fCrwh1QTTfTAbFWERusmCnMThCcn3mnR1lmkwhgSLOujLTi+w== X-Received: by 2002:a25:f81c:0:b0:b73:5908:5388 with SMTP id u28-20020a25f81c000000b00b7359085388mr3902065ybd.49.1681276068745; Tue, 11 Apr 2023 22:07:48 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id c124-20020a25c082000000b00b8ecde3a652sm2931268ybf.55.2023.04.11.22.07.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2023 22:07:48 -0700 (PDT) Date: Tue, 11 Apr 2023 22:07:44 -0700 From: Noah Misch To: Andres Freund Cc: "Drouvot, Bertrand" , Amit Kapila , Alvaro Herrera , Jeff Davis , Robert Haas , Thomas Munro , Ibrar Ahmed , Amit Khandekar , fabriziomello@gmail.com, tushar , Rahila Syed , pgsql-hackers Subject: Re: Minimal logical decoding on standbys Message-ID: <20230412050744.GA1217255@rfd.leadboat.com> References: <71c3d91a-6b3b-5c0a-ffb9-630f17fe693e@gmail.com> <20230407075009.igg7be27ha2htkbt@awork3.anarazel.de> <1e923731-ed09-3621-c8b9-61f938b4c355@gmail.com> <20230407154757.ywqnldz4nsycap3g@awork3.anarazel.de> <20230407181226.6oyt4jcazy6eh7rx@awork3.anarazel.de> <20230411053657.GA1177147@rfd.leadboat.com> <7eb26a22-a6b2-f938-6d3c-6adcf4785004@gmail.com> <002cc876-0838-2821-e9d8-bb3791386814@gmail.com> <20230411201057.qsjw7pjgtpvxcvn2@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411201057.qsjw7pjgtpvxcvn2@awork3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Apr 11, 2023 at 01:10:57PM -0700, Andres Freund wrote: > On 2023-04-11 11:04:50 +0200, Drouvot, Bertrand wrote: > > On 4/11/23 10:55 AM, Drouvot, Bertrand wrote: > > > I think we might want to add: > > > > > > $node_primary->wait_for_replay_catchup($node_standby); > > > > > > before calling the slot creation. > Pushed. Seems like a clear race in the test, so I didn't think it was worth > waiting for testing it on hoverfly. We'll see what happens in the next run. > I think we should lower the log level, but perhaps wait for a few more cycles > in case there are random failures? Fine with me. > I wonder if we should make the connections in poll_query_until to reduce > verbosity - it's pretty annoying how much that can bloat the log. Perhaps also > introduce some backoff? It's really annoying to have to trawl through all > those logs when there's a problem. Agreed. My ranked wish list for poll_query_until is: 1. Exponential backoff 2. Closed-loop time control via Time::HiRes or similar, instead of assuming that ten loops complete in ~1s. I've seen the loop take 3x as long as the intended timeout. 3. Connect less often than today's once per probe