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 1425128.1664805055@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17626: Permission denied errors should list role as well as user  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #17626: Permission denied errors should list role as well as user
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I'm running this set of commands:
> create user elevated_user IN ROLE pg_read_all_data;
> create user regular_user;
> create table foo (id int);
> set role elevated_user;
> select * from foo; -- works
> set role regular_user;
> select * from foo; -- errors

> The error message looks like "user=elevated_user ERROR:  permission denied
> for table foo".

No ... it just looks like

regression=> select * from foo; -- errors
ERROR:  permission denied for table foo

I don't know where "user=elevated_user" is coming from in your
environment, but it seems like it must be from client-side code
that's not tracking the active role correctly.

            regards, tom lane



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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Translation bug in French starting in v13
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17626: Permission denied errors should list role as well as user