Re: [BUG] autovacuum may skip tables when session_authorization/role is set on database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUG] autovacuum may skip tables when session_authorization/role is set on database
Дата
Msg-id 2660032.1702502302@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUG] autovacuum may skip tables when session_authorization/role is set on database  ("Imseih (AWS), Sami" <simseih@amazon.com>)
Ответы Re: [BUG] autovacuum may skip tables when session_authorization/role is set on database  ("Imseih (AWS), Sami" <simseih@amazon.com>)
Список pgsql-hackers
"Imseih (AWS), Sami" <simseih@amazon.com> writes:
> A recent case in the field in which a database session_authorization is
> altered to a non-superuser, non-owner of tables via alter database .. set session_authorization ..
> caused autovacuum to skip tables.

That seems like an extremely not-bright idea.  What is the actual
use case for such a setting?  Doesn't it risk security problems?

> Attached is a repro and a patch which sets the session user to the BOOTSTRAP superuser
> at the start of the autovac worker.

I'm rather unimpressed by this proposal, first because there are
probably ten other ways to break autovac with ill-considered settings,
and second because if we do want to consider this a supported case,
what about other background processes?  They'd likely have issues
as well.

            regards, tom lane



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

Предыдущее
От: "Tristan Partin"
Дата:
Сообщение: Re: Clean up find_typedefs and add support for Mac
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Remove MSVC scripts from the tree