reserved_superuser_connections tweak - Mailing list pgsql-patches

From Neil Conway
Subject reserved_superuser_connections tweak
Date
Msg-id 87el9g5c4i.fsf@mailbox.samurai.com
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 <neilc@samurai.com> || 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