Make superuser.c maintain a simple one-entry cache holding the superuser

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 299c4420778a81046788a704b72aaba6a8a988cc
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-05-29T20:38:06Z
Releases: 8.1.0
Make superuser.c maintain a simple one-entry cache holding the superuser
status of the most recently queried userid.  Since the common pattern is
many successive queries about the same user (ie, the current user) this
can save a lot of syscache probes.

Files

PathChange+/−
src/backend/utils/misc/superuser.c modified +59 −10