Robert Haas <robertmh...@gmail.com> writes:
> Current logic says we hit the connection limit if:

>         if (!am_superuser &&
>                 ReservedBackends > 0 &&
>                 !HaveNFreeProcs(ReservedBackends))

> Couldn't we just change this to:

>         if ((!am_superuser || am_walsender) &&
>                 ReservedBackends > 0 &&
>                 !HaveNFreeProcs(ReservedBackends))

As of the patch I just committed, that code is not reached anymore by a
walsender process.  However, it shouldn't be hard to put a similar test
into the walsender code path.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to