Re: Foreign table permissions and cloning

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Foreign table permissions and cloning
Дата
Msg-id BANLkTim6a_rfZ+UPPATTXap9Ed7-X7BzoA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Foreign table permissions and cloning  (Shigeru HANADA <hanada@metrosystems.co.jp>)
Ответы Re: Foreign table permissions and cloning  (Shigeru Hanada <hanada@metrosystems.co.jp>)
Список pgsql-hackers
On Fri, Apr 1, 2011 at 1:29 AM, Shigeru HANADA
<hanada@metrosystems.co.jp> wrote:
> In addition to the 2nd GRANT above, "GRANT SELECT (colour) ON stuff TO
> user_a" (omitting TABLE) will succeed too because parser assumes that
> the target object is a regular table if object type was TABLE or
> omitted. This inconsistent behavior would be an oversight and need to
> be fixed.

+1.

> How about to drop "GRANT xxx ON FOREIGN TABLE foo" syntax support and
> use "GRANT xxx ON [TABLE] foo" for foreign tables?  ISTM that "ON
> FOREIGN TABLE" specification is useless because possible privilege
> type would be same as TABLE.

-1.  We should be consistent about treating foreign tables as their
own object type - and the possible privilege types are NOT the same -
only SELECT is supported.

> Probabry we should mention in GRANT documents that ALL TABLES
> IN SCHEMA is considered to include foreign tables.

Or else change the behavior so that it doesn't, which would probably be my vote.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Foreign table permissions and cloning
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Proposal for GSoC : ADJ dashboard (Administration related software)