Re: WIP: Column-level Privileges

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: WIP: Column-level Privileges
Дата
Msg-id 20081114213811.GK3830@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: WIP: Column-level Privileges  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: WIP: Column-level Privileges  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Alvaro Herrera wrote:

> I didn't check the rest of the code, so don't count this as a review.

I had a look at aclchk.c and didn't like your change to
objectNamesToOids; seems rather baroque.  I changed it per the attached
patch.

Moreover I didn't very much like the way aclcheck_error_col is dealing
with two or one % escapes.  I think you should have a separate routine
for the column case, and prepend a dummy string to no_priv_msg.

Why is there a InternalGrantStmt.rel_level?  Doesn't it suffice to
check whether col_privs is NIL?

Is there enough common code in ExecGrant_Relation to justify the way you
have it?  Can the common be refactored in a better way that separates
the two cases more clearly?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Вложения

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

Предыдущее
От: "Robert Haas"
Дата:
Сообщение: "ORDER BY" clause prevents "UPDATE WHERE CURRENT OF"
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Okay, DLLIMPORT is making me crazy