Re: improving user.c error messages - Mailing list pgsql-hackers

From Tom Lane
Subject Re: improving user.c error messages
Date
Msg-id 3335491.1674836233@sss.pgh.pa.us
Whole thread Raw
In response to Re: improving user.c error messages  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: improving user.c error messages
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Set arbitrary GUC options during initdb
Next
From: Sébastien Lardière
Date:
Subject: Re: Timeline ID hexadecimal format