During Hot Standby, fix drop database when sessions idle.

Simon Riggs <simon@2ndQuadrant.com>

Commit: 3bfcccc2954ce251e2aea6503c0d937c493db781
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2010-01-10T15:44:28Z
Releases: 9.0.0
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

Files