proposal: DROP DATABASE variant that kills active sessions - Mailing list pgsql-hackers

From Filip Rembiałkowski
Subject proposal: DROP DATABASE variant that kills active sessions
Date
Msg-id CAP_rwwn5QetTh9cxr5bCJNaBDySP4P=TfH3HUARo-TqtV4dofQ@mail.gmail.com
Whole thread Raw
Responses Re: proposal: DROP DATABASE variant that kills active sessions  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
DROP DATABASE mydb CONCURRENTLY;

That would perform forced shutdown

1) reject any new backends to mydb
2) terminate old backends
3) drop db

40 upvotes here http://dba.stackexchange.com/a/11895/3710 inspired me
to propose this improvement.

If you think it's a good idea please include it as a low-priority TODO item.

thanks



pgsql-hackers by date:

Previous
From: Rajeev rastogi
Date:
Subject: Re: Dangling Client Backend Process
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: DROP DATABASE variant that kills active sessions