Re: BUG #15734: Walsender process crashing when executing SHOW ALL;

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15734: Walsender process crashing when executing SHOW ALL;
Дата
Msg-id 20190408073903.GJ2712@paquier.xyz
обсуждение исходный текст
Ответ на BUG #15734: Walsender process crashing when executing SHOW ALL;  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15734: Walsender process crashing when executing SHOW ALL;  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-bugs
On Thu, Apr 04, 2019 at 07:54:19AM +0000, PG Bug reporting form wrote:
> I don't think that such a crash is expected behavior. Either it should
> return the table with all settings or report simply error out with message
> 'unrecognized configuration parameter "ALL"'.

No, it's not correct to just disallow ALL as we have a similar check
in GetConfigOptionByName() for individual parameters.

Problem is origically from 25fff40, and got worse as of 0c8910a0.  A
superuser is able to get the list of parameters, but I can easily see
the failure when using a plain replication user.  A replication user
is one which can take a full base backup, so he can easily retrieve
the full list of parameters anyway.  What about bypassing the problem
and just allow WAL sender contexts to always have access to parameter
values?  I don't think that this is much a security issue if one
thinks about the access to BASE_BACKUP.
--
Michael

Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed
Следующее
От: Amit Langote
Дата:
Сообщение: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it wasalready committed