Re: Strange issues with 9.2 pg_basebackup & replication

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Strange issues with 9.2 pg_basebackup & replication
Дата
Msg-id CAHGQGwHR-boPR4FBNpYPQ6rfaP0RckSgJ7T7nzYOmuOBjPbGzw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Strange issues with 9.2 pg_basebackup & replication  (Joshua Berkus <josh@agliodbs.com>)
Ответы Re: Strange issues with 9.2 pg_basebackup & replication  (Joshua Berkus <josh@agliodbs.com>)
Список pgsql-hackers
On Fri, May 18, 2012 at 3:57 AM, Joshua Berkus <josh@agliodbs.com> wrote:
> Yeah, I don't know how I produced the crash in the first place, because of course the self-replica should block all
writes,and retesting it I can't get it to accept a write.  Not sure how I did it in the first place. 
>
> So the bug is just that you can connect a server to itself as its own replica.  Since I can't think of any good
reasonto do this, we should simply error out on startup if someone sets things up that way.  How can we detect that
we'veconnected streaming replication to the same server? 

It might be easy to detect the situation where the standby has
connected to itself,
e.g., by assigning ID for each instance and checking whether IDs of two servers
are the same. But it seems not easy to detect the circularly-connected
two or more
standbys.

Regards,

--
Fujii Masao


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: temporal support patch
Следующее
От: Chander Ganesan
Дата:
Сообщение: LISTEN/NOTIFY Security and the docs