Re: information schema/aclexplode doesn't know about default privileges

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: information schema/aclexplode doesn't know about default privileges
Date: 2012-01-09 18:23:59
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On mån, 2012-01-02 at 06:43 +0200, Peter Eisentraut wrote:
> I figured the best and most flexible way to address this is to export
> acldefault() as an SQL function and replace
> aclexplode(proacl)
> with
> aclexplode(coalesce(proacl, acldefault('f', proowner)))
> where 'f' here is something that is mapped to ACL_OBJECT_FUNCTION
> internally. AFAICT, there is no existing way to map an SQL-accessible
> quantity to the ACL_OBJECT_* symbols, so I'll just have to make
> something up.

Nobody had a better idea, so here is the final patch. I adjusted the
regression tests a bit to avoid bloat from the now-visible owner

Attachment Content-Type Size
infoschema-aclexplode-acldefault.patch text/x-patch 13.2 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2012-01-09 18:32:49 Re: pgindent README correction
Previous Message Peter Eisentraut 2012-01-09 18:05:56 Re: pgsql: plpython: Add SPI cursor support