Speed up information schema privilege views

Peter Eisentraut <peter_e@gmx.net>

Commit: 36f887c41c294d0035d84dfac75b4cc68a514950
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2009-12-05T21:43:36Z
Releases: 9.0.0
Speed up information schema privilege views

Instead of expensive cross joins to resolve the ACL, add table-returning
function aclexplode() that expands the ACL into a useful form, and join
against that.

Also, implement the role_*_grants views as a thin layer over the respective
*_privileges views instead of essentially repeating the same code twice.

fixes bug #4596

by Joachim Wieland, with cleanup by me

Files