Patch for reserved connections for replication users

From: Gibheer <gibheer(at)zero-knowledge(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Patch for reserved connections for replication users
Date: 2013-07-11 17:31:43
Message-ID: 20130711193143.2376b0c2@linse.fritz.box
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

this patch introduces a new configuration flag
replication_reserved_connections to reserve connection slots for
replication in the same way superuser_reserved_connections works for
superusers.

This helps in cases where the application opens connections until
max_connections is reached. A slave would not be able to connect to the
master now and would just be down. With this patch the slave is able to
connect.

This option does not influence the superuser_reserved_connections, so
new slaves are not able to open new connections when the reserved
replication slots are filled.

The only thing this patch is missing are tests. Where should I put them
into the source tree?

thank you,

Stefan Radomski

Attachment Content-Type Size
replication_reserved_connections.patch text/x-patch 5.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-07-11 18:05:14 Re: Regex pattern with shorter back reference does NOT work as expected
Previous Message Greg Stark 2013-07-11 16:28:37 Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap [Review]