Re: Taking database offline

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Taking database offline
Дата
Msg-id 20031112210945.GA2077@wolff.to
обсуждение исходный текст
Ответ на Taking database offline  (ow <oneway_111@yahoo.com>)
Список pgsql-admin
On Wed, Nov 12, 2003 at 12:07:23 -0800,
  ow <oneway_111@yahoo.com> wrote:
> Hi,
>
> Is there a way to take the database offline to keep users out?
> Is there a way to take the database offline but still allowing pg_restore to
> run against it?

You could shut the database down, change pg_hba.conf to only let in
the postgres user, bring the system back up. Once you finish your restore
you can repeat the procedure, this time change pg_hba.conf to let everyone
back in.

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

Предыдущее
От: ow
Дата:
Сообщение: Taking database offline
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Taking database offline