OSDN Git Service

Re-enable max_standby_delay = -1 using deadlock detection on startup
authorSimon Riggs <simon@2ndQuadrant.com>
Sat, 13 Feb 2010 01:32:20 +0000 (01:32 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Sat, 13 Feb 2010 01:32:20 +0000 (01:32 +0000)
commitb95a720a487b5027af1b9e4a12542800598ff5de
treed49548ca497e8169d9cbae7f7127f4f73330f0a5
parentfafa374f2d1e04ab265d56cdadb634124364646f
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.
src/backend/storage/ipc/procsignal.c
src/backend/storage/ipc/standby.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c
src/backend/utils/misc/guc.c
src/include/storage/proc.h
src/include/storage/procsignal.h
src/include/storage/standby.h