can not create user name in Capital letter

Hi,

I have a trouble in creating user and database in postgres. whenever I
create user or databases in capital letters, the names are always
converted into names in lower case letter. what's wrong with it?
Thanks

Dong


--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
donghe [ Mo, 02 November 2009 21:18 ] [ ID #2021282 ]

Re: can not create user name in Capital letter

You need to put double-quotes (") around your username, db name etc. -
otherwise everything is reduced to lower case.

Lewis


donghe [at] caltech.edu wrote:
> Hi,
>
> I have a trouble in creating user and database in postgres. whenever I
> create user or databases in capital letters, the names are always
> converted into names in lower case letter. what's wrong with it?
> Thanks
>
> Dong
>
>


--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Lewis Kapell [ Mo, 02 November 2009 21:27 ] [ ID #2021283 ]

Re: can not create user name in Capital letter

2009/11/2 <donghe [at] caltech.edu>:
> Hi,
>
> I have a trouble in creating user and database in postgres. whenever I
> create user or databases in capital letters, the names are always
> converted into names in lower case letter. what's wrong with it?
> Thanks
>
> Dong

Try add ""


CREATE USER "PepeArgento";

Emanuel Calvo Franco
DBA at: www.siu.edu.ar
www.emanuelcalvofranco.com.ar

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Emanuel Calvo Franco [ Mo, 02 November 2009 21:27 ] [ ID #2021284 ]

Re: can not create user name in Capital letter

Emanuel Calvo Franco, 02.11.2009 21:27:
>> I have a trouble in creating user and database in postgres. whenever I
>> create user or databases in capital letters, the names are always
>> converted into names in lower case letter. what's wrong with it?
>> Thanks
>>
>> Dong
>
> Try add ""
>
>
> CREATE USER "PepeArgento";
>

While one can certainly do that, I would strongly discourage the usage of mixed case user names (or any other object name that is). I'm pretty sure that will cause more trouble than it's worth.

Thomas


--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Thomas Kellerer [ Di, 03 November 2009 09:03 ] [ ID #2021453 ]
Datenbanken » gmane.comp.db.postgresql.admin » can not create user name in Capital letter

Vorheriges Thema: Need help in enabling remote connection
Nächstes Thema: vacuumdb knowledge of prior vacuum