Add condition variable for walreceiver shutdown.

Thomas Munro <tmunro@postgresql.org>

Commit: de829ddf23f69190efb4e0178704c4c4228e17cd
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-03-12T06:45:42Z
Releases: 14.0
Add condition variable for walreceiver shutdown.

Use this new CV to wait for walreceiver shutdown without a sleep/poll
loop, while also benefiting from standard postmaster death handling.

Discussion: https://postgr.es/m/CA%2BhUKGK1607VmtrDUHQXrsooU%3Dap4g4R2yaoByWOOA3m8xevUQ%40mail.gmail.com

Files

Documentation touched

Discussion