pgsql: Avoid unnecessary fetch from pg_shadow in the normal case in

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid unnecessary fetch from pg_shadow in the normal case in
Date: 2005-05-29 23:38:05
Message-ID: 20050529233805.EDD8152852@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Avoid unnecessary fetch from pg_shadow in the normal case in
pg_class_aclmask(). We only need to do this when we have to check
pg_shadow.usecatupd, and that's not relevant unless the target table
is a system catalog. So we can usually avoid one syscache lookup.

Modified Files:
--------------
pgsql/src/backend/catalog:
aclchk.c (r1.111 -> r1.112)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/aclchk.c.diff?r1=1.111&r2=1.112)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-05-30 01:04:45 pgsql: Skip eval_const_expressions when the query is such that the
Previous Message User Dpavlin 2005-05-29 23:00:45 pgswish - pgswish: subversion revision 23 commited to CVS