Re: New patch for Column-level privileges

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New patch for Column-level privileges
Дата
Msg-id 17692.1231820188@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: New patch for Column-level privileges  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Ответы Re: New patch for Column-level privileges  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Re: New patch for Column-level privileges  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
KaiGai Kohei <kaigai@ak.jp.nec.com> writes:
> I reconsidered the previous walker implementation independent
> from other parser codes is more simple and better.

And slower, and equally subject to this bug, so I'm not convinced.

> Stephen, Tom, what is your opinion?

I'm thinking make_var is not the place to do this.  The places that are
supposed to be taking care of permissions are the ones that do this:
    /* Require read access --- see comments in setTargetTable() */    rte->requiredPerms |= ACL_SELECT;

It's possible that we've missed some --- in particular, right at the
moment I am not sure that whole-row Vars are handled properly.
And maybe we could refactor a little bit to save some code.
But those are basically the same places that ought to be adding
bits to the column bitmaps.
        regards, tom lane


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

Предыдущее
От: "Robert Haas"
Дата:
Сообщение: Re: Recovery Test Framework
Следующее
От: "Koichi Suzuki"
Дата:
Сообщение: Re: Documenting pglesslog