Home > Archive > PostgreSQL Discussion > December 2005 > Login username char length









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Login username char length
markc@renta.net

2005-12-24, 7:23 am

Please excuse my naivety as I have never used postgresql. Could
anyone please let me know if there is any char length limit for the
username that logs into the database itself ?

--markc

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Tino Wildenhain

2005-12-24, 7:23 am

markc@renta.net schrieb:
> Please excuse my naivety as I have never used postgresql. Could
> anyone please let me know if there is any char length limit for the
> username that logs into the database itself ?
>


experiment=# \d pg_user
View "pg_catalog.pg_user"
Column | Type | Modifiers
-------------+---------+-----------
usename | name |
usesysid | integer |
usecreatedb | boolean |
usesuper | boolean |
usecatupd | boolean |
passwd | text |
valuntil | abstime |
useconfig | text[] |
View definition:
SELECT pg_shadow.usename, pg_shadow.usesysid, pg_shadow.usecreatedb,
pg_shadow.usesuper, pg_shadow.usecatupd, '********'::text AS passwd,
pg_shadow.valuntil, pg_shadow.useconfig
FROM pg_shadow;




http://www.postgresql.org/docs/8.1/...-character.html

"name 64 bytes internal type for object names"

Does this answer your question?

Regards
Tino Wildenhain

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Mark Constable

2005-12-24, 9:23 am

On Saturday 24 December 2005 23:13, Tino Wildenhain wrote:
> ...
> "name 64 bytes internal type for object names"
> Does this answer your question?


Almost entirely, yes, thank you very much.

However, is it possible that any clients such as the shell interface or
the module for PHP would enforce some stupid, for example, 16 or
32 char limit even though the server handles up to 64 chars ?

For years I have been using a transformed users email address into
a mysql username by simply extending the mysql.users.User field
manually to 64 chars. Now with mysql5 they have enforced a stupid
16 char limit in the *clients* (in libmysqlclient I guess). I either down
grade back to mysql4.1 or... upgrade to postgresql :)

But obviously there is no point in the lost time for the conversion to
postgresql if ultimately postgresql has a similar limitation.

--markc

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Carlos Moreno

2005-12-27, 9:23 am

Mark Constable wrote:

> But obviously there is no point in the lost time for the conversion to
>
>postgresql if ultimately postgresql has a similar limitation.
>
>


Ultimately, PostgreSQL has sooo many non-limitations with respect to
MySQL that you would never find that it was "lost time" -- I don't even
know where to begin; MySQL being such a crappy toy and enjoying
such a comfortable margin of popularity in the OS world, it makes me
so angry and frustrated...

My personal advice is: UPgrade and never look back; you'll never
regret it!

Carlos
--


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com