Re: improve more permissions-related error messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: improve more permissions-related error messages
Дата
Msg-id 1567732.1683924188@sss.pgh.pa.us
обсуждение исходный текст
Ответ на improve more permissions-related error messages  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: improve more permissions-related error messages  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes:
> This is intended as a follow-up to de4d456 [0].  I noticed that c3afe8c
> introduced another "must have privileges" error message that I think should
> be adjusted to use the new style introduced in de4d456.  І've attached a
> small patch for this.

+1

> While looking around for other such error messages, I found a few dozen
> "must be superuser" errors that might be improved with the new style.  If
> folks feel this is worthwhile, I'll put together a patch.

The new style is better for cases where we've broken out a predefined role
that has the necessary privilege.  I'm not sure it's worth troubling
with cases that are still just "must be superuser".  It seems like
you'd mostly just be creating work for the translation team.

            regards, tom lane



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

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: improve more permissions-related error messages
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: improve more permissions-related error messages