Re: SET ROLE documentation improvement
От
Nathan Bossart
Тема
Re: SET ROLE documentation improvement
Дата
Msg-id
20230915204711.GA2005906@nathanxps13
Ответ на
SET ROLE documentation improvement (Yurii Rashkovskii)
Список
Дерево обсуждения
SET ROLE documentation improvement Yurii Rashkovskii <yrashk@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Yurii Rashkovskii <yrashk@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Yurii Rashkovskii <yrashk@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Robert Haas <robertmhaas@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Robert Haas <robertmhaas@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement "Andrey M. Borodin" <x4mmm@yandex-team.ru>
Re: SET ROLE documentation improvement Michael Paquier <michael@paquier.xyz>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Robert Haas <robertmhaas@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Robert Haas <robertmhaas@gmail.com>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Michael Paquier <michael@paquier.xyz>
Re: SET ROLE documentation improvement Nathan Bossart <nathandbossart@gmail.com>
Re: SET ROLE documentation improvement Shubham Khanna <khannashubham1197@gmail.com>
On Fri, Sep 15, 2023 at 11:26:16AM -0700, Yurii Rashkovskii wrote: > I believe SET ROLE documentation makes a slightly incomplete statement > about what happens when a superuser uses SET ROLE. > > The documentation reading suggests that the superuser would lose all their > privileges. However, they still retain the ability to use `SET ROLE` again. > > The attached patch adds this bit to the documentation. IMO this is arguably covered by the following note: The specified role_name must be a role that the current session user is a member of. (If the session user is a superuser, any role can be selected.) But I don't see a big issue with clarifying things further as you propose. I think another issue is that the aforementioned note doesn't mention the new SET option added in 3d14e17. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления