Re: dropdb --force

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Filip Rembiałkowski <filip.rembialkowski@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>, Marti Raudsepp <marti@juffo.org>, Pavel Stehule <pavel.stehule@gmail.com>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2019-03-31T02:24:51Z
Lists: pgsql-hackers
Hi,

On 2019-03-10 11:20:42 +0100, Filip Rembiałkowski wrote:
>  bool
> -CountOtherDBBackends(Oid databaseId, int *nbackends, int *nprepared)
> +CountOtherDBBackends(Oid databaseId, int *nbackends, int *nprepared, bool force_terminate)
>  {

That doesn't seem like a decent API to me.

Greetings,

Andres Freund



Commits

  1. Add tests for '-f' option in dropdb utility.

  2. Move pump_until to TestLib.pm.

  3. Add the support for '-f' option in dropdb utility.

  4. Introduce the 'force' option for the Drop Database command.

  5. Improve CREATE/DROP/RENAME DATABASE so that when failing because the source