diff options
author | Amit Kapila <akapila@postgresql.org> | 2019-11-18 10:28:32 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2019-11-20 08:25:07 +0530 |
commit | 80e05a088e4edd421c9c0374d54d787c8a4c0d86 (patch) | |
tree | 84f58e853cf87b4cd67cda32b77d2114fec29e1a /doc/src | |
parent | eecf963269648d4309cc54f8e94508ad42bbb88b (diff) | |
download | postgresql-80e05a088e4edd421c9c0374d54d787c8a4c0d86.tar.gz postgresql-80e05a088e4edd421c9c0374d54d787c8a4c0d86.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/dropdb.sgml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/dropdb.sgml b/doc/src/sgml/ref/dropdb.sgml index 3fbdb337164..f79bbb9a85a 100644 --- a/doc/src/sgml/ref/dropdb.sgml +++ b/doc/src/sgml/ref/dropdb.sgml @@ -87,6 +87,18 @@ PostgreSQL documentation </varlistentry> <varlistentry> + <term><option>-f</option></term> + <term><option>--force</option></term> + <listitem> + <para> + Attempt to terminate all existing connections to the target database + before dropping it. See <xref linkend="sql-dropdatabase"/> for more + information on this option. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-V</option></term> <term><option>--version</option></term> <listitem> |