Re: shut down one database?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: shut down one database?
Дата
Msg-id 465F7F3F.3050307@commandprompt.com
обсуждение исходный текст
Ответ на Re: shut down one database?  (Ottavio Campana <ottavio@campana.vi.it>)
Ответы Re: shut down one database?
Список pgsql-general
Ottavio Campana wrote:
> Bill Moran wrote:
>> Ottavio Campana <ottavio@campana.vi.it> wrote:
>>> I have postgresql running several databases. I can stop them all by
>>> stopping postgresql, but sometimes I'd like to shut down a single database.
>>>
>>> Can I get the same effect of stopping postgresql for only one database?
>> You can tweak pg_hba.conf to disallow all access to that particular
>> database.  Will that accomplish what you want?
>
> well, that would be only a part: I'd also like to stop all the processes
> related to that db. Sometimes I have some connection I'd like to close...

set datallowconn to false in pg_database;

>


--

       === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
              http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


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

Предыдущее
От: Andreas
Дата:
Сообщение: where find recent binary PostgreSQL
Следующее
От: Ottavio Campana
Дата:
Сообщение: Re: shut down one database?