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