Re: Upgrade and Single User

Поиск
Список
Период
Сортировка
От Bartosz Dmytrak
Тема Re: Upgrade and Single User
Дата
Msg-id CAD8_UcZLfKPMDei4a4P=mES+CKTzg2tYYdP7DLvdaTiEdfBfTQ@mail.gmail.com
обсуждение исходный текст
Ответ на Upgrade and Single User  (Tom Browder <tom.browder@gmail.com>)
Ответы Re: Upgrade and Single User  (Tom Browder <tom.browder@gmail.com>)
Список pgsql-novice


2012/9/19 Tom Browder <tom.browder@gmail.com>
I want to upgrade my existing installation and would like to ensure
the db is not modified until I get the new installation running.

Is there any way to restart into a single user mode so that a
pg_dumpall works as the superuser?  Or am I limited to a stop, fiddle
with pg_hba.conf, restart, pg_dumpall, etc.?

Thanks,

-To
m

 
Hi
 "If you edit the file on an active system, you will need to signal the postmaster (using pg_ctl reload or kill -HUP)"

"reload mode simply sends the postgres process a SIGHUP signal, causing it to reread its configuration files (postgresql.conf, pg_hba.conf, etc.). This allows changing of configuration-file options that do not require a complete restart to take effect."

One advise:
1. change pg_hba.conf;
2. kill all user sessions (or kindly ask them to disconect);
3. reload configuration;
4. You're ready to updgrade.

Regards,
Bartek
 

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: pg_dump and pg_restore
Следующее
От: Bartosz Dmytrak
Дата:
Сообщение: Re: Issue with PERFORM