-
- Downloads
Show default privileges in information schema
Hitherto, the information schema only showed explicitly granted privileges that were visible in the *acl catalog columns. If no privileges had been granted, the implicit privileges were not shown. To fix that, add an SQL-accessible version of the acldefault() function, and use that inside the aclexplode() calls to substitute the catalog-specific default privilege set for null values. reviewed by Abhijit Menon-Sen
Showing
- src/backend/catalog/information_schema.sql 9 additions, 9 deletionssrc/backend/catalog/information_schema.sql
- src/backend/utils/adt/acl.c 58 additions, 0 deletionssrc/backend/utils/adt/acl.c
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 2 additions, 0 deletionssrc/include/catalog/pg_proc.h
- src/include/utils/acl.h 1 addition, 0 deletionssrc/include/utils/acl.h
- src/test/regress/expected/foreign_data.out 4 additions, 4 deletionssrc/test/regress/expected/foreign_data.out
- src/test/regress/sql/foreign_data.sql 4 additions, 4 deletionssrc/test/regress/sql/foreign_data.sql
Loading
Please register or sign in to comment