In walsender, don't sleep if there's outstanding WAL waiting to be sent,
Heikki Linnakangas <heikki.linnakangas@iki.fi>
In walsender, don't sleep if there's outstanding WAL waiting to be sent, otherwise we effectively rate-limit the streaming as pointed out by Simon Riggs. Also, send the WAL in smaller chunks, to respond to signals more promptly.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/walsender.c | modified | +96 −85 |