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 1k4BdH-0003uW-Po for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Aug 2020 23:18:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k4BdF-0005aJ-85 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Aug 2020 23:18:37 +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 1k4BdF-0005a1-0w for pgsql-hackers@lists.postgresql.org; Fri, 07 Aug 2020 23:18:37 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k4BdC-0002w7-3B for pgsql-hackers@lists.postgresql.org; Fri, 07 Aug 2020 23:18:36 +0000 Received: by mail-qv1-xf42.google.com with SMTP id a19so1541501qvy.3 for ; Fri, 07 Aug 2020 16:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=UfH1brvHW8rL6ChvJl1nardMUU+9tcL4fiUBXTxovhY=; b=kbalYzHUtSp9tIxvzGT1oqmYDncVin5ufG5X3fE5i+t/c0IPG4zz7q0eGOs7mPBAKx agJw3niUywvbvkz9jLf4FmXUovsBe3hL3YsU9PzSBLOBiaLhTGNoLOyHobFu5VkNxreT IJ44aBFzikcNpq5XPYQsdNKlYepXnJMZ7WS9iK9IbSV0FpjMX5ReyFdrC79NFdOnvbkH 91gJkpSEVmUQmh2ezjPArgU/bLpOkN43u92KOcN8DZgADAL32jJPd7RuoNHK0NSxn0ab ttaVHLbCPZ30IvFIxG4Bxh/cTuBVniXBKjPmScNCuI29BYKFFwEDXYvfglz73MSRgKRy dOnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=UfH1brvHW8rL6ChvJl1nardMUU+9tcL4fiUBXTxovhY=; b=XP7l1If1Iww4bvwiD7Gy9k4kmciQUFJ0/k0jZRtB+dlTsFswbfnuLUtqjIv2rVh+71 lK3OreY3b66lQ6T+BbUFCH/KZjMiESRsfax+Qrzu9qpWJBEbIqtKs5Uq/XRLXRxix22u qVGDFAmJwAanfCALjJfdI32ZJzitiabgyDwNaqzlBPfunh1cM8EHrHQJFTILuDpA+sPp qYJOLJrDMevZpJ5vRLVn3VVWvpiZJXrw4nEpIeTNhQnm7bZfwacfVuY0TSYovajw1vNJ PYorVByot980YPemDOUuyfRVDYr4N3hnkqfO5oiLO/bzp5W5DJbCinWKG1gRN7utpr8Z LGKQ== X-Gm-Message-State: AOAM533/6jH4PrkdxUBw333Q18/F03rSwafUl5DZgUhVBwKSftu4PCxN GvjE3IgoWuG1ddpgMr+jq+51AA== X-Google-Smtp-Source: ABdhPJzGBYj+GgZShNxXGLuMnP0T355ad+ccYP3ZSrAZB4cGPMuJHpQcb/EiXgEaCfOA4byT/36c8Q== X-Received: by 2002:ad4:438e:: with SMTP id s14mr16882394qvr.18.1596842311994; Fri, 07 Aug 2020 16:18:31 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id w12sm7375823qkj.116.2020.08.07.16.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 16:18:31 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 315732A0FB2; Fri, 7 Aug 2020 19:18:29 -0400 (-04) Date: Fri, 7 Aug 2020 19:18:29 -0400 From: Alvaro Herrera To: Pg Hackers Cc: ashutosh.bapat@2ndquadrant.com, Noah Misch Subject: Re: walsender waiting_for_ping spuriously set Message-ID: <20200807231829.GA3040@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200807225512.GA28635@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Aug-07, Alvaro Herrera wrote: > I'm thinking in keeping the sentences that were added in that commit, > maybe like so: > > > * We only send regular messages to the client for full decoded > > * transactions, but a synchronous replication and walsender shutdown > > * possibly are waiting for a later location. So, before sleeping, we > > + * send a ping containing the flush location. A reply from standby is > > + * not needed and would be wasteful most of the time, > > + * but if the receiver is otherwise idle and walreceiver status messages > > + * are enabled, this keepalive will trigger a reply. Processing the > > + * reply will update these MyWalSnd locations. After rereading this a few more times, I think it's OK as Noah had it, so I'll just use his wording. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services