Excerpts from Marko Kreen's message of jue dic 29 15:04:49 -0300 2011:
> 3) Have a way to format aclitem into something
> that can used to create GRANT statement easily. Eg:
>
> pg_get_privilege_info(
> IN priv aclitem,
> OUT rolename text,
> OUT privlist text[],
> OUT privlist_with_grant_option text[]);
>
> This allows doing complex introspection in pl/pgsql
> and also helps tools that want to re-create table structure
> in other databases.
aclexplode?
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support