summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorPeter Eisentraut2012-01-27 19:58:51 +0000
committerPeter Eisentraut2012-01-27 19:58:51 +0000
commitb376ec6fa57bc76037014ede29498e2d1611968e (patch)
tree2849df5a841b6779cd15629a6ba190368d4c659b /src/include/utils
parentbf90562aa464e3a9afedde5f0007058f381d00fe (diff)
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
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/acl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h
index 88a66cfa6d2..ff3c6aa1f62 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -245,6 +245,7 @@ extern Datum aclcontains(PG_FUNCTION_ARGS);
extern Datum makeaclitem(PG_FUNCTION_ARGS);
extern Datum aclitem_eq(PG_FUNCTION_ARGS);
extern Datum hash_aclitem(PG_FUNCTION_ARGS);
+extern Datum acldefault_sql(PG_FUNCTION_ARGS);
extern Datum aclexplode(PG_FUNCTION_ARGS);
/*