Re: restrict column-level GRANTs to a single relation?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: restrict column-level GRANTs to a single relation?
Дата
Msg-id 16268.1137683682@sss.pgh.pa.us
обсуждение исходный текст
Ответ на restrict column-level GRANTs to a single relation?  (kevin brintnall <kbrint@rufus.net>)
Список pgsql-hackers
kevin brintnall <kbrint@rufus.net> writes:
>     GRANT SELECT (col1, col2, col3) ON table1, table2 TO grantee;

> Is it reasonable to restrict this to a single relation, and throw an error
> if multiple relations are specified?

The SQL spec doesn't actually allow multiple things after GRANT ... ON
--- that's a PG extension.  So you could make the restriction and not
violate the spec.  OTOH it seems unlikely that this would save much.
        regards, tom lane


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

Предыдущее
От: mark@mark.mielke.cc
Дата:
Сообщение: Re: Surrogate keys (Was: enums)
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: No heap lookups on index