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

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: BUG #1794: inheritance removes permissions from the parent table
Дата
Msg-id 20050728135113.GA76018@winnie.fuhr.org
обсуждение исходный текст
Ответ на BUG #1794: inheritance removes permissions from the parent table  ("Sean Burlington" <sean@uncertainty.org.uk>)
Ответы Re: BUG #1794: inheritance removes permissions from the parent  (Sean Burlington <sean@uncertainty.org.uk>)
Список pgsql-bugs
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.

> If you create a new table that inherits from another table - a user cannot
> select from the parent if they cannot select from the child.

[snip]

> select * from a;
> ERROR:  permission denied for relation b
>
> I didn't expect to need permission for table b in order to select from a...

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:

SELECT * FROM ONLY a;

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "David Dabney"
Дата:
Сообщение: Re: Insert statement changes timestamp value from MS Access
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1796: UNION ALL of NULL <=> type = text so mimack pb