Re: Understanding PG9.0 streaming replication feature

Поиск
Список
Период
Сортировка
От Ray Stell
Тема Re: Understanding PG9.0 streaming replication feature
Дата
Msg-id 20110127023418.GC31642@cns.vt.edu
обсуждение исходный текст
Ответ на Re: Understanding PG9.0 streaming replication feature  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
On Wed, Jan 26, 2011 at 09:18:01PM -0500, Bruce Momjian wrote:
>
> Uh, the sentence is:
>
>     On systems that support the keepalive socket option, setting
>     tcp_keepalives_idle, tcp_keepalives_interval and tcp_keepalives_count
>     helps the primary promptly notice a broken connection.
>
> I believe there they are talking about setting those values in the
> master/primary so you see the slave has disconnected --- this is not
> related to setting in the connection string, I think.


Yep.  Simon shows it the other way in his book:

 "If you want a Standby to notice that the connection to the Master has
 dropped, you need to set the keepalives in the primary_conninfo in the
 recovery.conf"

That works, also.

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Understanding PG9.0 streaming replication feature
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Adding ddl audit trigger