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
Showing
- src/backend/catalog/information_schema.sql 155 additions, 227 deletionssrc/backend/catalog/information_schema.sql
- src/backend/utils/adt/acl.c 139 additions, 1 deletionsrc/backend/utils/adt/acl.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 3 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/utils/acl.h 2 additions, 1 deletionsrc/include/utils/acl.h
Loading
Please register or sign in to comment