reserved_superuser_connections tweak

From: Neil Conway <neilc(at)samurai(dot)com>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: reserved_superuser_connections tweak
Date: 2002-11-20 18:28:45
Message-ID: 87el9g5c4i.fsf@mailbox.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)samurai(dot)com> || PGP Key ID: DB3C29FC

Attachment Content-Type Size
reserved_conn_fix-1.patch text/x-patch 1.7 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2002-11-20 22:18:41 Re: documentation for reserved_superuser_connections
Previous Message Neil Conway 2002-11-20 18:20:21 documentation for reserved_superuser_connections