]> granicus.if.org Git - postgresql/commit
Minimize calls of pg_class_aclcheck to minimum necessary
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 23 Oct 2014 01:41:43 +0000 (21:41 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 23 Oct 2014 01:41:43 +0000 (21:41 -0400)
commite64d3c5635cef9ee2e9d67904f1d3e88f4d8b2e7
treef600ab24ccf5ccbe2e4449db89750269c88c4b34
parenta5f7d581943e70235264098c35313d16e932ee0c
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>
src/backend/commands/sequence.c