Re: BUG #17626: Permission denied errors should list role as well as user

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17626: Permission denied errors should list role as well as user
Дата
Msg-id 1515820.1664812411@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17626: Permission denied errors should list role as well as user  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: BUG #17626: Permission denied errors should list role as well as user
Re: BUG #17626: Permission denied errors should list role as well as user
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Basically, a permission check requires two things and the complaint is that
> only one of those things is mentioned in the error message.

No, the complaint is that the wrong thing is shown --- but I don't
know what's showing it; aclcheck_error() certainly doesn't.

There's a separate conversation to be had perhaps about whether
aclcheck_error's standard message *should* include the role name
whose permissions were checked.  I have a vague feeling that that
omission was intentional, but it was so long ago that I don't
recall for sure.  It seems like something that'd be good to show
in more complicated situations with views, security definer
functions, etc.

            regards, tom lane



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17626: Permission denied errors should list role as well as user
Следующее
От: Loren Siebert
Дата:
Сообщение: Re: BUG #17626: Permission denied errors should list role as well as user