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

Re: BUG #1794: inheritance removes permissions from the parent

From: Sean Burlington <sean(at)uncertainty(dot)org(dot)uk>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1794: inheritance removes permissions from the parent
Date: 2005-07-28 14:56:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patches
Michael Fuhr wrote:
> On Thu, Jul 28, 2005 at 12:48:35PM +0100, Sean Burlington wrote:
>>Description:        inheritance removes permissions from the parent table
> I think a more accurate description would be "permissions not
> inherited by children," and that isn't necessarily a bug.

I agree it may not be a bug - but it's more than the permissions not
being inherited: the parent is affected.


> Records in the child are visible when you select from the parent,
> so it follows that you'd need permission on both tables.  If you
> want only records that are in the parent then use FROM ONLY:

That makes sense :-)

I was experimenting with inheritance for the first time and for me this
effect was a real suprise.

It would be handy if this was in the documentation for anyone else who
comes across this issue

Would it be possible to allow the usual select and just return the
records the user has permission for - possibly along with a warning
about the child table?



In response to


pgsql-bugs by date

Next:From: Richard HuxtonDate: 2005-07-28 15:01:20
Subject: Re: BUG #1795: mirroring
Previous:From: David DabneyDate: 2005-07-28 14:48:31
Subject: Re: Insert statement changes timestamp value from MS Access

pgsql-patches by date

Next:From: Tom LaneDate: 2005-07-28 17:54:34
Subject: Re: AIX - pgport/contrib resolution
Previous:From: Andrew DunstanDate: 2005-07-28 13:53:23
Subject: Re: AIX - pgport/contrib resolution

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