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

Amit Kapila <akapila@postgresql.org>

Commit: 80e05a088e4edd421c9c0374d54d787c8a4c0d86
Author: Amit Kapila <akapila@postgresql.org>
Date: 2019-11-20T02:55:07Z
Releases: 13.0
Add the support for '-f' option in dropdb utility.

Specifying '-f' will add the 'force' option to the DROP DATABASE command
sent to the server.  This will try to terminate all existing connections
to the target database before dropping it.

Author: Pavel Stehule
Reviewed-by: Vignesh C and Amit Kapila
Discussion: https://postgr.es/m/CAP_rwwmLJJbn70vLOZFpxGw3XD7nLB_7+NKz46H5EOO2k5H7OQ@mail.gmail.com

Files

PathChange+/−
doc/src/sgml/ref/dropdb.sgml modified +12 −0
src/bin/scripts/dropdb.c modified +11 −3
src/bin/scripts/t/050_dropdb.pl modified +7 −1

Documentation touched

Discussion