User got created with first letter capitalized

Поиск
Список
Период
Сортировка
От John Scalia
Тема User got created with first letter capitalized
Дата
Msg-id CABzCKRBh9GW4zWKTa_X4a+8h7A=GjHRe-CO43y-aonJg30fyHw@mail.gmail.com
обсуждение исходный текст
Ответы Re: User got created with first letter capitalized  (Keith <keith@keithf4.com>)
Список pgsql-admin
I have a user who was inserted into the db by one of our automation scripts. His ID has the very first letter capitalized.  The script reads the users from the appropriate Active Directory group and makes sure they exist in the database.

For grins, let's say the user is good old Charley Brown and is called "Cbrown1" in Active Directory. If I look for him by rolname in either pg_authid or the pg_roles view, He shows as:

rolname
-----------
Cbrown1
(1 row)

but when I try then to get rid of him using either "DROP ROLE cbrown1;" or "DROP ROLE Cbrown1;" I receive "ERROR: role "cbrown1" does not exist. Note that I get the error with the name in all lower case regardless of which way I specify him.

Also, he does not show up using \du Cbrown1 or \du+ cbrown1, but does show if I enter \du without specifying his id.

Anyone know what's going on with this?
--
Jay

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Gupta, Amar Nath"
Дата:
Сообщение: Re: High-end PG database configuration help
Следующее
От: Keith
Дата:
Сообщение: Re: User got created with first letter capitalized