dropdb --force

Поиск
Список
Период
Сортировка
От Filip Rembiałkowski
Тема dropdb --force
Дата
Msg-id CAP_rwwmLJJbn70vLOZFpxGw3XD7nLB_7+NKz46H5EOO2k5H7OQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: dropdb --force  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: dropdb --force  (David Fetter <david@fetter.org>)
Список pgsql-hackers
Hi,

I propose a simple patch (works-for-me), which adds --force (-f)
option to dropdb utility.

Pros:  This seems to be a desired option for many sysadmins, as this
thread proves: https://dba.stackexchange.com/questions/11893/force-drop-db-while-others-may-be-connected
Cons: another possible foot-gun for the unwary.

Obviously this patch needs some more work (see TODO note inside).

Please share opinions if this makes sense at all, and has any chance
going upstream.

The regression tests is simplistic, please help with an example of
multi-session test so I can follow.


Thanks,
Filip

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Some memory allocations in gin fastupdate code are a bit brain dead
Следующее
От: Alexey Kondratov
Дата:
Сообщение: Re: PATCH: logical_work_mem and logical streaming of largein-progress transactions