From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Ottavio Campana <ottavio(at)campana(dot)vi(dot)it> |
Cc: | Bill Moran <wmoran(at)potentialtech(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: shut down one database? |
Date: | 2007-06-01 03:05:07 |
Message-ID: | 465F8CE3.9090207@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ottavio Campana wrote:
> Joshua D. Drake wrote:
>> Ottavio Campana wrote:
>>> Bill Moran wrote:
>>>> Ottavio Campana <ottavio(at)campana(dot)vi(dot)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;
>
> does it shut down the already existing ones?
It will disallow all connections to whatever database you specify.
>
--
=== 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/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-06-01 03:35:24 | Re: invalid memory alloc after insert with c trigger function |
Previous Message | Greg Smith | 2007-06-01 02:45:50 | Re: PITR Base Backup on an idle 8.1 server |