Re: [PATCH] Use role name "system_user" instead of "user" for unsafe_tests

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Use role name "system_user" instead of "user" for unsafe_tests
Дата
Msg-id 508365.1681243417@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Use role name "system_user" instead of "user" for unsafe_tests  (Aleksander Alekseev <aleksander@timescale.com>)
Ответы Re: [PATCH] Use role name "system_user" instead of "user" for unsafe_tests  (Aleksander Alekseev <aleksander@timescale.com>)
Список pgsql-hackers
Aleksander Alekseev <aleksander@timescale.com> writes:
>> I don't think we can protect against all possible user names. Wouldn't it be better to run the tests under an OS
userwith a different name, like "marmaduke"? ("user" is a truly terrible default user name). 

> 100% agree. The point is not to protect against all possible user
> names but merely to reduce the likelihood of the problem.

It only reduces the likelihood if you assume that "system_user"
is less likely than "user" as a choice of OS user name to run
the tests under.  That seems like a debatable assumption;
perhaps it's actually *more* likely.

Whether we need to have a test for this at all is perhaps a
more interesting argument.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: v12: ERROR: subplan "InitPlan 2 (returns $4)" was not initialized
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Minimal logical decoding on standbys