Re: max_connections and standby server

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tatsuo Ishii <ishii(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: max_connections and standby server
Date: 2015-08-11 10:07:35
Message-ID: CANP8+jLh=EQYKxPBLRfe7sD+GVwPZYch=50Q65wV-Df-Cw28vQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11 August 2015 at 06:42, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Tatsuo Ishii <ishii(at)postgresql(dot)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/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2015-08-11 10:14:34 Re: Reducing ClogControlLock contention
Previous Message Amit Kapila 2015-08-11 09:55:19 Re: Reducing ClogControlLock contention