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

From Robert Haas
Subject Re: improving user.c error messages
Date
Msg-id CA+TgmoZvrsrpp=c2x=6HBHxOoXcu4TyQ6JnMkcGVrCHAn+V=8w@mail.gmail.com
Whole thread Raw
In response to Re: improving user.c error messages  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Fri, Jan 27, 2023 at 10:52 AM Nathan Bossart
<nathandbossart@gmail.com> wrote:
> IMHO superuser should typically only be mentioned when it is the only way
> to do something.  Since superusers have all privileges, I think logs like
> "superuser or privileges of X" are kind of redundant.  If Robert has
> privileges of X, we wouldn't say "privileges of X or Robert."  We'd just
> point to X.  Ultimately, I feel like mentioning superuser in error messages
> usually just makes the message longer without adding any useful
> information.

That's kind of my opinion too, but I'm not sure whether there are
cases where it will lead to confusion.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Set arbitrary GUC options during initdb
Next
From: "David G. Johnston"
Date:
Subject: Re: Set arbitrary GUC options during initdb