Re: [HACKERS] Postgresql gives error that role goes not exists whileit exists

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [HACKERS] Postgresql gives error that role goes not exists whileit exists
Дата
Msg-id CAMsr+YFn+qGa99Wa-Q-U4kTCRK=UAU9S84BQdSk7LxiKGs_0bQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Postgresql gives error that role goes not exists whileit exists  (Euler Taveira <euler@timbira.com.br>)
Ответы Re: [HACKERS] Postgresql gives error that role goes not exists while it exists  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] 64-bit queryId?
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [HACKERS] Possible SSL improvements for a newcomer to tackle