Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Character Data ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 15421 of 17602
Post > Topic >>

Character Data Type 'Name'

by aanderson@[EMAIL PROTECTED] (Andy Anderson) Apr 29, 2008 at 05:46 PM

I'm creating my own table of metadata about other tables in my  
database. As such, one column will be the names of those other tables,  
and the maximum length of the data in this column would be the allowed  
length of an identifier. So one possible data type for this column  
would be 'varchar(NAMEDATALEN - 1)'.

However, it would seem to be much simpler to use the special character  
type 'name', except that the do***entation in section 8.3 warns that  
"The 'name' type exists only for storage of identifiers in the  
internal system catalogs and is not intended for use by the general  
user. "

Is there any real harm in using 'name', though, other than lack of  
****tability?

-- Andy

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 2 Posts in Topic:
Character Data Type 'Name'
aanderson@[EMAIL PROTECTE  2008-04-29 17:46:35 
Re: Character Data Type 'Name'
tgl@[EMAIL PROTECTED] (T  2008-04-29 21:46:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 19:49:02 CST 2008.