Re: Fix a wrong errmsg in AlterRole() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix a wrong errmsg in AlterRole()
Date
Msg-id 1654750.1736350152@sss.pgh.pa.us
Whole thread Raw
Responses Re: Fix a wrong errmsg in AlterRole()
List pgsql-hackers
"=?ISO-8859-1?B?Y2NhNTUwNw==?=" <cca5507@qq.com> writes:
> postgres=> alter group g1 drop user r1;
> ERROR:  permission denied to alter role
> DETAIL:  Only roles with the ADMIN option on role "g1" may add members.

> The errmsg is "add members", but we are doing a drop.
> Here is a small patch to fix it.

Hmm.  Seems simpler to just make the errdetail say "... may add or
drop members."

            regards, tom lane



pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: using PGOPTIONS in meson
Next
From: Tom Lane
Date:
Subject: Re: ecpg command does not warn COPY ... FROM STDIN;