pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix over-eager ping'ing in logical replication receiver.
Date: Sat, 05 Sep 2020 00:33:50 +0000
Message-ID: <E1kEM9O-0004EC-Q7@gemulon.postgresql.org> (raw)

Fix over-eager ping'ing in logical replication receiver.

Commit 3f60f690f only partially fixed the broken-status-tracking
issue in LogicalRepApplyLoop: we need ping_sent to have the same
lifetime as last_recv_timestamp.  The effects are much less serious
than what that commit fixed, though.  AFAICS this would just lead to
extra ping requests being sent, once per second until the sender
responds.  Still, it's a bug, so backpatch to v10 as before.

Discussion: https://postgr.es/m/959627.1599248476@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9b81a30f924cf30e6bf3abb3366706440351e163

Modified Files
--------------
src/backend/replication/logical/worker.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1kEM9O-0004EC-Q7@gemulon.postgresql.org>
Permalink:  ../E1kEM9O-0004EC-Q7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kEM9O-0004EC-Q7@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix over-eager ping'ing in logical replication receiver.
  In-Reply-To: <E1kEM9O-0004EC-Q7@gemulon.postgresql.org>
  References: <E1kEM9O-0004EC-Q7@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox