Make superuser.c maintain a simple one-entry cache holding the superuser
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/misc/superuser.c | modified | +59 −10 |