Re: max_connections and standby server - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: max_connections and standby server
Date
Msg-id CAB7nPqS3TLaD4bTAkdpYz0-2=X-+Ksubbs3mrs_e7nNvdFi7NQ@mail.gmail.com
Whole thread Raw
In response to Re: max_connections and standby server  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: max_connections and standby server
Re: max_connections and standby server
List pgsql-hackers
On Tue, Aug 11, 2015 at 2:42 PM, 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.

If I recall correctly, that's because KnownAssignedXIDs and the lock
table need to be large enough on the standby for the largest snapshot
possible (procarray.c).
-- 
Michael



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [PROPOSAL] VACUUM Progress Checker.
Next
From: Michael Paquier
Date:
Subject: Re: max_connections and standby server