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

2012-01-31 Thread Lionel Elie Mamane
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 >> aclexplo

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

2012-01-09 Thread Peter Eisentraut
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

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

2012-01-03 Thread Jim Nasby
On Jan 1, 2012, at 10:43 PM, 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))) It would be nice to provid

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

2012-01-01 Thread Peter Eisentraut
On sön, 2011-11-27 at 17:29 -0500, Tom Lane wrote: > Peter Eisentraut writes: > > This ought to show EXECUTE privilege on the new function, but it > > doesn't, because proacl is null, and nothing in the information schema > > handles that specially. > > > I've pondered some ways to fix that. One

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

2011-11-27 Thread Tom Lane
Peter Eisentraut writes: > This ought to show EXECUTE privilege on the new function, but it > doesn't, because proacl is null, and nothing in the information schema > handles that specially. > I've pondered some ways to fix that. One would be to add a variant of > aclexplode() that takes a param