Exit from base backups when shutdown is requested
Magnus Hagander <magnus@hagander.net>
Exit from base backups when shutdown is requested When the exit waits until the whole backup completes, it may take a very long time. In passing, add back an error check in the main loop so we detect clients that disconnect much earlier if the backup is large.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/basebackup.c | modified | +13 −1 |
| src/backend/replication/walsender.c | modified | +8 −8 |
| src/include/replication/walsender.h | modified | +2 −0 |