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)
commit299c4420778a81046788a704b72aaba6a8a988cc
tree6523fe25115d38805c0d5564412a6a81d7142885
parentdb86f2961765cd2fc3683700b340a4296a8d488e
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