Re: improving user.c error messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: improving user.c error messages
Дата
Msg-id 3335491.1674836233@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: improving user.c error messages  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: improving user.c error messages  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I almost hate to bring this up since I'm not sure how far we want to
> go down this rat hole, but what should be our policy about mentioning
> superuser? I don't think we're entirely consistent right now, and I'm
> not sure whether every error message needs to mention that if you were
> the superuser you could do everything. Is that something we should
> mention always, never, or in some set of circumstances?

Good point.  My vote is for standardizing on *not* mentioning it.
Error messages should say "you need privilege X".  That is not
the place to go into all the ways you could hold privilege X
(one of which is being superuser).

            regards, tom lane



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Set arbitrary GUC options during initdb
Следующее
От: Sébastien Lardière
Дата:
Сообщение: Re: Timeline ID hexadecimal format