Unix Technical Forum

Text type versus Varchar(n)

This is a discussion on Text type versus Varchar(n) within the pgsql Novice forums, part of the PostgreSQL category; --> I have just set up my first Postgresql database and I was wondering if it is more efficient to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:29 PM
Kevin Crenshaw
 
Posts: n/a
Default Text type versus Varchar(n)

I have just set up my first Postgresql database and I was wondering if
it is more efficient to use the Text data type or the Varchar(n) data
type.

Thanks for your help,


kevin crenshaw


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 09:29 PM
Michael Fuhr
 
Posts: n/a
Default Re: Text type versus Varchar(n)

On Tue, Feb 08, 2005 at 11:09:09PM -0500, Kevin Crenshaw wrote:
>
> I have just set up my first Postgresql database and I was wondering if
> it is more efficient to use the Text data type or the Varchar(n) data
> type.


The FAQ and documentation discuss the similarities and differences
between the character types:

http://www.postgresql.org/files/docu.../FAQ.html#4.10
http://www.postgresql.org/docs/8.0/s...character.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com