From: | Erik Jones <erik(at)myemma(dot)com> |
---|---|
To: | Ottavio Campana <ottavio(at)campana(dot)vi(dot)it> |
Cc: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, 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 14:15:31 |
Message-ID: | D224078A-C9F5-4B96-B587-80AAFE2D0434@myemma.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On May 31, 2007, at 9:13 PM, 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?
No, it does not kill already existing connections to the given database.
Erik Jones
Software Developer | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
From | Date | Subject | |
---|---|---|---|
Next Message | Csaba Nagy | 2007-06-01 14:19:55 | Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum |
Previous Message | Alvaro Herrera | 2007-06-01 13:58:25 | Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum |