Re: "has_column_privilege()" issue with attnums and non-existent columns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "has_column_privilege()" issue with attnums and non-existent columns
Дата
Msg-id 2994045.1617142965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "has_column_privilege()" issue with attnums and non-existent columns  (Joe Conway <mail@joeconway.com>)
Ответы Re: "has_column_privilege()" issue with attnums and non-existent columns  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> Heh, I missed the forest for the trees it seems.
> That version undid the changes fixing what Ian was originally complaining about.

Duh, right.  It would be a good idea for there to be a code comment
explaining this, because it's *far* from obvious.  Say like

    * Check for column-level privileges first.  This serves in
    * part as a check on whether the column even exists, so we
    * need to do it before checking table-level privilege.

My gripe about providing API-spec comments for the new aclchk.c
entry points still stands.  Other than that, I think it's good
to go.

            regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: multi-install PostgresNode fails with older postgres versions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Trouble with initdb trying to run regression tests