Make superuser.c maintain a simple one-entry cache holding the superuser
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2005 20:38:06 +0000 (20:38 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2005 20:38:06 +0000 (20:38 +0000)
commitdfb24fb7f99552eecd23918490de549bad8fed03
tree07d0d259bbea4301620c766628b5c73846f6dc29
parent8e9c74d06d69667a769dc06bc19a538b836de8fa
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.
src/backend/utils/misc/superuser.c