Quantcast

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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tom Lane-3
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/utils/misc:
        superuser.c (r1.30 -> r1.31)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/superuser.c.diff?r1=1.30&r2=1.31)

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [hidden email])
Loading...