diff options
author | Joe Conway <mail@joeconway.com> | 2018-09-24 10:14:57 -0400 |
---|---|---|
committer | Joe Conway <mail@joeconway.com> | 2018-09-24 10:14:57 -0400 |
commit | c62dd80cdf149e2792b13c13777a539f5abb0370 (patch) | |
tree | b454f857a7d068490b905db066619b0460ff1f4e /src | |
parent | d18f6674bd60e923bcdbf0fd916685b0a250c60f (diff) | |
download | postgresql-c62dd80cdf149e2792b13c13777a539f5abb0370.tar.gz postgresql-c62dd80cdf149e2792b13c13777a539f5abb0370.zip |
Document aclitem functions and operators
aclitem functions and operators have been heretofore undocumented.
Fix that. While at it, ensure the non-operator aclitem functions have
pg_description strings.
Does not seem worthwhile to back-patch.
Author: Fabien Coelho, with pg_description from John Naylor, and significant
refactoring and editorialization by me.
Reviewed by: Tom Lane
Discussion: https://postgr.es/m/flat/alpine.DEB.2.21.1808010825490.18204%40lancre
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/acl.c | 3 | ||||
-rw-r--r-- | src/include/catalog/pg_proc.dat | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index a45e093de79..d5285e25999 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -855,8 +855,7 @@ acldefault(ObjectType objtype, Oid ownerId) /* * SQL-accessible version of acldefault(). Hackish mapping from "char" type to - * OBJECT_* values, but it's only used in the information schema, not - * documented for general use. + * OBJECT_* values. */ Datum acldefault_sql(PG_FUNCTION_ARGS) diff --git a/src/include/catalog/pg_proc.dat b/src/include/catalog/pg_proc.dat index 860571440a5..8e4145f42b4 100644 --- a/src/include/catalog/pg_proc.dat +++ b/src/include/catalog/pg_proc.dat @@ -2073,11 +2073,11 @@ { oid => '1365', descr => 'make ACL item', proname => 'makeaclitem', prorettype => 'aclitem', proargtypes => 'oid oid text bool', prosrc => 'makeaclitem' }, -{ oid => '3943', descr => 'TODO', +{ oid => '3943', descr => 'show hardwired default privileges, primarily for use by the information schema', proname => 'acldefault', prorettype => '_aclitem', proargtypes => 'char oid', prosrc => 'acldefault_sql' }, { oid => '1689', - descr => 'convert ACL item array to table, for use by information schema', + descr => 'convert ACL item array to table, primarily for use by information schema', proname => 'aclexplode', prorows => '10', proretset => 't', provolatile => 's', prorettype => 'record', proargtypes => '_aclitem', proallargtypes => '{_aclitem,oid,oid,text,bool}', |