pgsql: Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."
Date: 2020-04-25 17:27:56
Message-ID: E1jSOaq-0000rW-Gw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Revert "When WalSndCaughtUp, sleep only in WalSndWaitForWal()."

This reverts commit 421685812290406daea58b78dfab0346eb683bbb. It caused
idle physical walsenders to busy-wait, as reported by Fujii Masao.

Discussion: https://postgr.es/m/20200417054146.GA1061007@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/72a3dc321d76c93842d502793f93b9dc2d2305b2

Modified Files
--------------
src/backend/replication/walsender.c | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2020-04-25 21:17:30 pgsql: Fix minor nbtree page deletion buffer lock issue.
Previous Message Andrew Gierth 2020-04-25 04:21:05 pgsql: Fix error case for CREATE ROLE ... IN ROLE.