Re: WIP: Column-level Privileges

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: WIP: Column-level Privileges
Дата
Msg-id 20081102041314.GS4452@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: WIP: Column-level Privileges  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: WIP: Column-level Privileges  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Markus, et al,

* Stephen Frost (sfrost@snowman.net) wrote:
> I also wonder if you could use joins or something
> to extract information about columns you're not supposed to have access
> to, or where clauses, etc..

welp, I've done some additional testing and there's good news and bad, I
suppose.  The good news is that when relations are join'd, they go
through expandRelation, which adds all the columns in that relation to
the 'required' set, so you have to have rights to all columns on a table
to join against it in the normal way.

On the other hand, you can just select out the columns you have access
to in a subquery and then join against *that* and it works.  updates
with where clauses and inserts-with-selects seem to work correctly
though, which is nice.  A case I just realized might be an issue is
doing a 'select 1 from x;' where you have *no* rights on x, or any
columns in it, would still get you the rowcount.  That might not be too
hard to fix though, I'll look into it tomorrow sometime.
Thanks,
    Stephen

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: WIP: Column-level Privileges
Следующее
От: "Hitoshi Harada"
Дата:
Сообщение: Re: Windowing Function Patch Review -> Performance Comparison.