Re: Usernames with hyphens

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Usernames with hyphens
Дата
Msg-id 16D03D54-375C-4E2E-A504-B88F7FD4B2FF@myrealbox.com
обсуждение исходный текст
Ответ на Usernames with hyphens  (Devrim GUNDUZ <devrim@gunduz.org>)
Список pgsql-hackers
On Jun 13, 2005, at 8:30 PM, Devrim GUNDUZ wrote:

> AFAIK, PostgreSQL does not allow hyphens in usernames and  
> databases, right?

AFAIK, you can use whatever you want if you double-quote it.

test=# create database "hyphen-test";
LOG:  transaction ID wrap limit is 2147484134, limited by database  
"test"
CREATE DATABASE
test=# \c hyphen-test
You are now connected to database "hyphen-test".

Note that this is the SQL command, rather than another command such  
as the createdb or createuser client apps or psql. For example, \c  
works without the quotes.

Michael Glaesemann
grzm myrealbox com




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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Usernames with hyphens
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: Usernames with hyphens