SET ROLE x NO RESET

Поиск
Список
Период
Сортировка
От Eric Hanson
Тема SET ROLE x NO RESET
Дата
Msg-id CACA6kxgdzt-oForijaxfXHHhnZ1WBoVGMXVwFrJqUu-Hg3C-jA@mail.gmail.com
обсуждение исходный текст
Ответы Re: SET ROLE x NO RESET  (Joe Conway <mail@joeconway.com>)
Re: SET ROLE x NO RESET  (Michał Kłeczek <michal@kleczek.org>)
Re: SET ROLE x NO RESET  (Nico Williams <nico@cryptonector.com>)
Список pgsql-hackers
Hi,

What do you think of adding a NO RESET option to the SET ROLE command?

Right now Postgres can enforce data security with roles and RLS, but role-per-end-user doesn't really scale:  Db connections are per-role, so a connection pooler can't share connections across users.  We can work around this with policies that use session variables and checks against current_user, but it seems like role-per end user would be more beautiful.  If SET ROLE had a NO RESET option, you could connect through a connection pooler as a privileged user, but downgrade to the user's role for the duration of the session.

Thanks,
Eric

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

Предыдущее
От: Jacob Burroughs
Дата:
Сообщение: Re: Add new protocol message to change GUCs for usage with future protocol-only GUCs
Следующее
От: Joe Conway
Дата:
Сообщение: Re: SET ROLE x NO RESET