Re: [HACKERS] Postgresql gives error that role goes not exists whileit exists - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [HACKERS] Postgresql gives error that role goes not exists whileit exists
Date
Msg-id CAMsr+YFn+qGa99Wa-Q-U4kTCRK=UAU9S84BQdSk7LxiKGs_0bQ@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Postgresql gives error that role goes not exists whileit exists  (Euler Taveira <euler@timbira.com.br>)
Responses Re: [HACKERS] Postgresql gives error that role goes not exists while it exists
List pgsql-hackers
On 3 October 2017 at 20:47, Euler Taveira <euler@timbira.com.br> wrote:
>
> 2017-10-03 5:49 GMT-03:00 Nick Dro <postgresql@walla.co.il>:
> > Can someone assists with the issue posted on StackOverflow?
> >
> > https://stackoverflow.com/questions/46540537/postgresql-9-3-creation-of-group-role-causes-permission-problems
> >
> >
> > Creation of new Group Role causes postgresql to think that Login roles does
> > not exist. I think it's a bug? or at least a wrong error message
> >
> I'm not sure. I bet a dime that the role was created as "Iris" and you
> are trying to assing "iris" (they are different). If you list the
> roles, we can confirm that.
>

... and the reason we don't emit a HINT here is that the exact same
HINT would apply in any context involving identifiers, so we'd just
flood the logs. It'd be spurious in most cases.

We could only emit a useful HINT if we actually went and looked in the
relevant catalog for a different-cased version. Which is pretty
expensive.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] 64-bit queryId?
Next
From: Magnus Hagander
Date:
Subject: Re: [HACKERS] Possible SSL improvements for a newcomer to tackle