Minimize calls of pg_class_aclcheck to minimum necessary

Peter Eisentraut <peter_e@gmx.net>

Commit: e64d3c5635cef9ee2e9d67904f1d3e88f4d8b2e7
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2014-10-23T01:41:43Z
Releases: 9.5.0
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@otacoo.com>
Reviewed-by: Fabrízio de Royes Mello <fabriziomello@gmail.com>

Files

PathChange+/−
src/backend/commands/sequence.c modified +6 −6