pgsql: Minimize calls of pg_class_aclcheck to minimum necessary

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Minimize calls of pg_class_aclcheck to minimum necessary
Date: 2014-10-23 01:44:13
Message-ID: E1Xh7Rl-0004uA-3f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Minimize calls of pg_class_aclcheck to minimum necessary

In a couple of code paths, pg_class_aclcheck is called in succession
with multiple different modes set. This patch combines those modes to
have a single call of this function and reduce a bit process overhead
for permission checking.

Author: Michael Paquier <michael(at)otacoo(dot)com>
Reviewed-by: Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e64d3c5635cef9ee2e9d67904f1d3e88f4d8b2e7

Modified Files
--------------
src/backend/commands/sequence.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2014-10-23 07:33:10 pgsql: Prevent the already-archived WAL file from being archived again.
Previous Message Tom Lane 2014-10-22 22:42:32 pgsql: Ensure libpq reports a suitable error message on unexpected sock