Skip site navigation (1) Skip section navigation (2)

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

From: Lionel Elie Mamane <lionel(at)mamane(dot)lu>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: information schema/aclexplode doesn't know about default privileges
Date: 2012-01-31 17:11:00
Message-ID: 20120131171100.GA30599@capsaicin.mamane.lu (view raw or flat)
Thread:
Lists: pgsql-hackers
On Mon, Jan 09, 2012 at 08:23:59PM +0200, Peter Eisentraut wrote:
> 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)))

> Nobody had a better idea, so here is the final patch.

Thanks! This is important for the LibreOffice-PostgreSQL integration,
since LibreOffice uses the privilege information to determine whether
to let the user edit/insert data in the UI or not. It is thus
important for this information to be correct.

I currently work around that with a UNION, assuming that the default
acl is "owner has all rights".

-- 
Lionel

In response to

pgsql-hackers by date

Next:From: Robert HaasDate: 2012-01-31 17:12:10
Subject: Re: foreign key locks, 2nd attempt
Previous:From: Robert HaasDate: 2012-01-31 17:04:31
Subject: Re: JSON for PG 9.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group