proposal: DROP DATABASE variant that kills active sessions

From: Filip Rembiałkowski <filip(dot)rembialkowski(at)gmail(dot)com>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: proposal: DROP DATABASE variant that kills active sessions
Date: 2015-10-16 10:13:21
Message-ID: CAP_rwwn5QetTh9cxr5bCJNaBDySP4P=TfH3HUARo-TqtV4dofQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2015-10-16 10:22:22 Re: proposal: DROP DATABASE variant that kills active sessions
Previous Message Rajeev rastogi 2015-10-16 10:04:43 Re: Dangling Client Backend Process