Re: Usernames with hyphens

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Usernames with hyphens
Date: 2005-06-13 11:46:27
Message-ID: 16D03D54-375C-4E2E-A504-B88F7FD4B2FF@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Devrim GUNDUZ 2005-06-13 11:49:49 Re: Usernames with hyphens
Previous Message Dave Page 2005-06-13 11:40:46 Re: Usernames with hyphens