Re: hot standby PSQL 9.1 Windows 2008 Servers

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: hot standby PSQL 9.1 Windows 2008 Servers
Дата
Msg-id CA+TgmoanA_uMn3UaN-9kdW8vrPs2UGkhaLdidpc=aTyeF1H6UQ@mail.gmail.com
обсуждение исходный текст
Ответ на hot standby PSQL 9.1 Windows 2008 Servers  (chinnaobi <chinnaobi@gmail.com>)
Ответы Re: hot standby PSQL 9.1 Windows 2008 Servers  (chinnaobi <chinnaobi@gmail.com>)
Список pgsql-hackers
On Mon, May 14, 2012 at 8:18 AM, chinnaobi <chinnaobi@gmail.com> wrote:
> I do base backup only first time on standby when it is going to be
> replicated. when ever primary goes down,  standby becomes primary and
> primary becomes standby when primary comes up. When primary becomes standby
> I am restoring data from WAL archive and start postgres service streaming
> replication to connect to primary.
>
> This setup is working.

I don't think this is safe.  The primary might have WAL that never
made it to the standby, in which case the two machines will be out of
sync with each other and all sorts of bad stuff could happen.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Changing the concept of a DATABASE
Следующее
От: Robert Haas
Дата:
Сообщение: Re: ERROR: catalog is missing 2 attribute(s) for relid 16584