OSDN Git Service

During Hot Standby, fix drop database when sessions idle.
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 10 Jan 2010 15:44:28 +0000 (15:44 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 10 Jan 2010 15:44:28 +0000 (15:44 +0000)
commit3bfcccc2954ce251e2aea6503c0d937c493db781
tree4f8aa5492ae4baa610027cf97e2b5cd5920a3fb7
parent87091cb1f1ed914e2ddca424fa28f94fdf8461d2
During Hot Standby, fix drop database when sessions idle.
Previously we only cancelled sessions that were in-transaction.

Simple fix is to just cancel all sessions without waiting. Doing
it this way avoids complicating common code paths, which would
not be worth the trouble to cover this rare case.

Problem report and fix by Andres Freund, edited somewhat by me
src/backend/commands/dbcommands.c
src/backend/storage/ipc/procarray.c
src/include/storage/procarray.h