git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 112caf9) | patch
Introduce the 'force' option for the Drop Database command.
2019年11月12日 05:36:13 +0000 (11:06 +0530)
2019年11月13日 02:55:33 +0000 (08:25 +0530)
commit 1379fd537f9fc7941c8acff8c879ce3636dbdb77
Introduce the 'force' option for the Drop Database command.

This new option terminates the other sessions connected to the target
database and then drop it. To terminate other sessions, the current user
must have desired permissions (same as pg_terminate_backend()). We don't
allow to terminate the sessions if prepared transactions, active logical
replication slots or subscriptions are present in the target database.

Author: Pavel Stehule with changes by me
Reviewed-by: Dilip Kumar, Vignesh C, Ibrar Ahmed, Anthony Nowocien,
Ryan Lambert and Amit Kapila
Discussion: https://postgr.es/m/CAP_rwwmLJJbn70vLOZFpxGw3XD7nLB_7+NKz46H5EOO2k5H7OQ@mail.gmail.com
13 files changed:
doc/src/sgml/ref/drop_database.sgml diff | blob | blame | history
src/backend/commands/dbcommands.c diff | blob | blame | history
src/backend/nodes/copyfuncs.c diff | blob | blame | history
src/backend/nodes/equalfuncs.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/storage/ipc/procarray.c diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/include/commands/dbcommands.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/storage/procarray.h diff | blob | blame | history
src/test/regress/expected/drop_if_exists.out diff | blob | blame | history
src/test/regress/sql/drop_if_exists.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /