Re: Why standby.max_connections must be higher than primary.max_connections?

From: satoshi yamada <satoshi(dot)yamada(dot)pg(at)gmail(dot)com>
To: Peter Geoghegan <pg(at)heroku(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Why standby.max_connections must be higher than primary.max_connections?
Date: 2013-12-13 02:44:46
Message-ID: CAAsiBbwayEM6rB1LsQn8dDdvEW+hohR-2S0SfAmPis5WNgA=pw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>> Because the KnownAssignedXIDs and lock tables on the standby need to
>> be large enough to contain the largest snapshot and greatest number of
>> AccessExclusiveLocks that could exist on the master at any given time.
>
> Right. Initially during the development of Hot Standby, it looked like
> the "max_connections >= master's" requirement on standbys wasn't going
> to be necessary, or could be avoided. However, Simon gave up on that
> idea on pragmatic grounds here:
>
>
http://www.postgresql.org/message-id/1252002165.2889.467.camel@ebony.2ndQuadrant
>
> I'd thought about revisiting this myself, but I think that the impetus
> to do so is lessened by recent work on logical replication.
>

Hi Peter

Your information make my question be clearly.
I understand the discussions about this restriction.

Thanks.

2013/12/12 Peter Geoghegan <pg(at)heroku(dot)com>

> On Tue, Dec 10, 2013 at 1:17 PM, Robert Haas <robertmhaas(at)gmail(dot)com>
> wrote:
> > Because the KnownAssignedXIDs and lock tables on the standby need to
> > be large enough to contain the largest snapshot and greatest number of
> > AccessExclusiveLocks that could exist on the master at any given time.
>
> Right. Initially during the development of Hot Standby, it looked like
> the "max_connections >= master's" requirement on standbys wasn't going
> to be necessary, or could be avoided. However, Simon gave up on that
> idea on pragmatic grounds here:
>
>
> http://www.postgresql.org/message-id/1252002165.2889.467.camel@ebony.2ndQuadrant
>
> I'd thought about revisiting this myself, but I think that the impetus
> to do so is lessened by recent work on logical replication.
>
> --
> Peter Geoghegan
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2013-12-13 03:03:58 Re: [PATCH] configure: allow adding a custom string to PG_VERSION
Previous Message Andres Freund 2013-12-13 02:41:41 Re: "stuck spinlock"