Обсуждение: pgsql: Avoid unnecessary fetch from pg_shadow in the normal case in

Поиск
Список
Период
Сортировка

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

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
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)