Re-enable max_standby_delay = -1 using deadlock detection on startup
Simon Riggs <simon@2ndQuadrant.com>
Re-enable max_standby_delay = -1 using deadlock detection on startup process. If startup waits on a buffer pin we send a request to all backends to cancel themselves if they are holding the buffer pin required and they are also waiting on a lock. If not, startup waits until max_standby_delay before cancelling any backend waiting for the requested buffer pin.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/procsignal.c | modified | +4 −1 |
| src/backend/storage/ipc/standby.c | modified | +46 −16 |
| src/backend/storage/lmgr/proc.c | modified | +12 −2 |
| src/backend/tcop/postgres.c | modified | +15 −1 |
| src/backend/utils/misc/guc.c | modified | +2 −2 |
| src/include/storage/proc.h | modified | +2 −1 |
| src/include/storage/procsignal.h | modified | +2 −1 |
| src/include/storage/standby.h | modified | +3 −2 |