Re: Queries Regarding Postgresql Replication

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: Queries Regarding Postgresql Replication
Дата
Msg-id BANLkTi=YiPZgBaXsOBOJoAkJs0eh3DMZbw@mail.gmail.com
обсуждение исходный текст
Ответ на Queries Regarding Postgresql Replication  (Nithya Rajendran <r-nithya@hcl.com>)
Список pgsql-general
On Thu, May 5, 2011 at 7:33 AM, Nithya Rajendran <r-nithya@hcl.com> wrote:

[Disclaimer: I have minimal experience with hot standby, the below is
just from reading the docs]

> ===> How to find whether current postgres is running as master or slave?

SELECT pg_is_in_recovery();
will tell you (should be false for the master, true for the slave).

> ====> What is the procedure to make the failed master as working slave?

You mean, after you've failed over from A to B, how to bring A back up
as a slave of B? You should be able to just follow the steps of
setting up a master-slave pair, with B as the new master, and A the
new slave.

Josh

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

Предыдущее
От: Toby Corkindale
Дата:
Сообщение: Re: Fwd: Re: SSDD reliability
Следующее
От: John Cheng
Дата:
Сообщение: Re: Cannot reproduce why a query is slow