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

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make superuser.c maintain a simple one-entry cache holding the
Date: 2005-05-29 20:38:06
Message-ID: 20050529203806.CCA2B52838@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message User Dpavlin 2005-05-29 21:31:15 pgswish - pgswish: logging to file in /tmp/ (not really best solution),
Previous Message Tom Lane 2005-05-29 20:16:00 pgsql: Marginal hack to save a little bit of time in bpcharin() when