Disadvantages to using "text" - Mailing list pgsql-novice

From Don Mies (NIM)
Subject Disadvantages to using "text"
Date
Msg-id 3329C5B4110B6F429B69A8D70AC74D0303A9B544@exchange1.NIMONE.COM
Whole thread Raw
Responses Re: Disadvantages to using "text"  ("Rodrigo E. De León Plicet" <rdeleonp@gmail.com>)
Re: Disadvantages to using "text"  ("Richard Broersma" <richard.broersma@gmail.com>)
Re: Disadvantages to using "text"  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Disadvantages to using "text"  (Aurynn Shaw <ashaw@commandprompt.com>)
List pgsql-novice

Are there any reasons for not using the “text” type whenever a variable length string field is needed?  Are there penalties in disk usage, memory usage or performance?

 

What are the differences between declaring something “varchar” or “varchar(n)” or “text”?  (I realize that the middle one has an upper limit while the others do not.)

 

 

Don

 

 

pgsql-novice by date:

Previous
From: "Wright, George"
Date:
Subject: Re: function exception
Next
From: "Rodrigo E. De León Plicet"
Date:
Subject: Re: Disadvantages to using "text"