Re: Numeric user names

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Numeric user names
Дата
Msg-id 1098159913.1113.112.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Numeric user names  (Ed Stoner <ed@whsd.k12.pa.us>)
Ответы Re: Numeric user names  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, 2004-10-13 at 06:31, Ed Stoner wrote:
> I am unable to use the "CREATE USER" command with numeric user names
> (i.e. CREATE USER 35236 WITH PASSWORD '1234';).  Is this a limitation or
> a problem somewhere with how I have things configured?  Is there are
> workaround?

A username is an identifier; per the docs, "SQL identifiers and key
words must begin with a letter (a-z, but also letters with diacritical
marks and non-Latin letters) or an underscore (_). Subsequent characters
in an identifier or key word can be letters, underscores, digits (0-9),
or dollar signs ($)." So it's a limitation.

I don't know of an easy workaround. Why do you need numeric usernames?

-Neil



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

Предыдущее
От: johnossmann@yahoo.com (John Ossmann)
Дата:
Сообщение: capacity of datatype "text"
Следующее
От: Neil Conway
Дата:
Сообщение: Re: capacity of datatype "text"