Add the support for '-f' option in dropdb utility.
authorAmit Kapila <akapila@postgresql.org>
Mon, 18 Nov 2019 04:58:32 +0000 (10:28 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 20 Nov 2019 02:55:07 +0000 (08:25 +0530)
commit80e05a088e4edd421c9c0374d54d787c8a4c0d86
tree84f58e853cf87b4cd67cda32b77d2114fec29e1a
parenteecf963269648d4309cc54f8e94508ad42bbb88b
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
doc/src/sgml/ref/dropdb.sgml
src/bin/scripts/dropdb.c
src/bin/scripts/t/050_dropdb.pl