pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix slowdown in TAP tests due to recent walreceiver change.
Date: Wed, 16 Nov 2022 22:31:23 +0000
Message-ID: <E1ovQwE-000VrW-Fd@gemulon.postgresql.org> (raw)

Fix slowdown in TAP tests due to recent walreceiver change.

Commit 05a7be93 changed the timing of the first reply sent by a
walreceiver, which caused a few TAP tests that call wait_for_catchup()
when they haven't actually streamed anything yet to wait ~10 seconds
(wal_receiver_status_interval).

Before commit 05a7be93 the initial reply was sent after 100ms, but
there's no reason not to send it immediately as a slight improvement.
Do the same for HS feedback for consistency.

Author: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/742545.1668377284%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5db195f76f279a120edee448ad74d43578f56edd

Modified Files
--------------
src/backend/replication/walreceiver.c | 4 ++++
1 file changed, 4 insertions(+)



Message-ID: <E1ovQwE-000VrW-Fd@gemulon.postgresql.org>
Permalink:  ../E1ovQwE-000VrW-Fd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ovQwE-000VrW-Fd@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: tmunro@postgresql.org
  Subject: Re: pgsql: Fix slowdown in TAP tests due to recent walreceiver change.
  In-Reply-To: <E1ovQwE-000VrW-Fd@gemulon.postgresql.org>
  References: <E1ovQwE-000VrW-Fd@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