Suppressing useless wakeups in walreceiver

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Suppressing useless wakeups in walreceiver
Date: 2022-01-27 10:50:04
Message-ID: CA+hUKGJGhX4r2LPUE3Oy9BX71Eum6PBcS8L3sJpScR9oKaTVaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While working on WaitEventSet-ifying various codepaths, I found it
strange that walreceiver wakes up 10 times per second while idle.
Here's a draft patch to compute the correct sleep time.

Attachment Content-Type Size
0001-Suppress-useless-wakeups-in-walreceiver.patch text/x-patch 20.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2022-01-27 10:56:57 Re: Is there a way (except from server logs) to know the kind of on-going/last checkpoint?
Previous Message Sergey Dudoladov 2022-01-27 10:43:26 Re: Add connection active, idle time to pg_stat_activity