Thanks to visit codestin.com
Credit goes to postgrespro.com

reserved_superuser_connections tweak - Mailing list pgsql-patches

From Neil Conway
Subject reserved_superuser_connections tweak
Date
Msg-id [email protected]
Whole thread Raw
Responses Re: reserved_superuser_connections tweak
List pgsql-patches
There's no point counting the # of empty backend slots (which requires
grabbing an LWLock) unless

        (a) the # of reserved slots is > 0

        (b) the current user is not a superuser

Thus, we can sometimes get away without grabbing the lock

Cheers,

Neil

--
Neil Conway <[email protected]> || PGP Key ID: DB3C29FC

Attachment

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: documentation for reserved_superuser_connections
Next
From: Neil Conway
Date:
Subject: Re: documentation for reserved_superuser_connections