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: Suppress useless wakeups in walreceiver.
Date: Tue, 08 Nov 2022 07:45:19 +0000
Message-ID: <E1osJIM-0008Yg-4n@gemulon.postgresql.org> (raw)

Suppress useless wakeups in walreceiver.

Instead of waking up 10 times per second to check for various timeout
conditions, keep track of when we next have periodic work to do.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CA%2BhUKGJGhX4r2LPUE3Oy9BX71Eum6PBcS8L3sJpScR9oKaTVaA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/05a7be93558c614ab89c794cb1d301ea9ff33199

Modified Files
--------------
src/backend/replication/walreceiver.c | 171 ++++++++++++++++++++++------------
src/tools/pgindent/typedefs.list      |   1 +
2 files changed, 115 insertions(+), 57 deletions(-)



Message-ID: <E1osJIM-0008Yg-4n@gemulon.postgresql.org>
Permalink:  ../E1osJIM-0008Yg-4n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1osJIM-0008Yg-4n@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: Suppress useless wakeups in walreceiver.
  In-Reply-To: <E1osJIM-0008Yg-4n@gemulon.postgresql.org>
  References: <E1osJIM-0008Yg-4n@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