Re: Taking database offline - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: Taking database offline
Date
Msg-id 200311131454.hADEsZ608721@candle.pha.pa.us
Whole thread Raw
In response to Re: Taking database offline  (ow <oneway_111@yahoo.com>)
Responses Re: Taking database offline  (ow <oneway_111@yahoo.com>)
List pgsql-admin
ow wrote:
>
> --- Bruce Momjian <pgman@candle.pha.pa.us> wrote:
> >
> > Rather than restart the server (kicking everyone out), does 'reload'
> > help to keep new users out and let the old ones leave on their own?
> >
>
> Not really ... users (old or new) should not work with the db unless it's
> completely loaded. Restarting the server will affect activity in other dbs in
> that cluster which is not desirable :(  IMHO, there should be a way to do this
> without restarting the server.

You can restrict pg_hba.conf to not allow connections just to one
database if you want.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-admin by date:

Previous
From: dojie pornea
Date:
Subject: can't connect to PostgreSQL Database using pgAdminII
Next
From: Christopher Browne
Date:
Subject: Re: easy way to copy all DBs and users on a server