Re: pg_upgrade and rsync

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_upgrade and rsync
Дата
Msg-id 20150129171104.GE4482@momjian.us
обсуждение исходный текст
Ответ на Re: pg_upgrade and rsync  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Thu, Jan 29, 2015 at 12:09:58PM -0500, Andrew Dunstan wrote:
> >>>7. shut down postgres on the replica.
> >>>
> >>>8. rsync both the old and new data directories from the master to the
> >>>replica, using the --size-only and -H hard links options.  For example,
> >>>if both 9.3 and 9.4 are in /var/lib/postgresql, do:
> >>>
> >>>rsync -aHv --size-only -e ssh --itemize-changes /var/lib/postgresql/
> >>>replica-host:/var/lib/postgresql/
> >>>
> >>>9. Create a recovery.conf file in the replica's data directory with the
> >>>appropriate parameters.
> >>>
> >>>10. Start the master, then the replica
> >>>
> >>>
> >>I find steps 2 and 6 confusing.
> >For number 2, he is creating a new cluster on the master server.  For
> >#6, he is just creating an empty data directory, though this is not
> >required as rsync will create the directory for you.
> >
> 
> 
> Then step 2 should specify that it's for the master.

Right.  Josh is just listing all the steps --- the pg_upgrade docs
already have that spelled out in detail.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: jsonb, unicode escapes and escaped backslashes
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pg_check_dir comments and implementation mismatch