Re: max_connections and standby server

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: max_connections and standby server
Дата
Msg-id CANP8+jLh=EQYKxPBLRfe7sD+GVwPZYch=50Q65wV-Df-Cw28vQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: max_connections and standby server  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 11 August 2015 at 06:42, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Tatsuo Ishii <ishii@postgresql.org> writes:
> I think this is because pg_control on the standby remembers that the
> previous primary server's max_connections = 1100 even if the standby
> server fails to start. Shouldn't we update pg_control file only when
> standby succeeds to start?

Somebody refresh my memory as to why we have this restriction (that is,
slave's max_connections >= master's max_connections) in the first place?
Seems like it should not be a necessary requirement, and working towards
getting rid of it would be far better than any other answer.

That was the consensus on how to control things on the standby, as 9.0 closed.

Yes, there are various other ways of specifying those things and these days they could be made to react more dynamically.

There are various major improvements to hot standby that could have happened, but that time has been spent on the more useful logical replication which is slowly making its way into core. More coming in 9.6.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Reducing ClogControlLock contention
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Reducing ClogControlLock contention