| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | Sim Zacks <sim(at)nospam(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: varchar vs text |
| Date: | 2005-01-05 18:12:49 |
| Message-ID: | 20050105181240.GA26062@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, Jan 04, 2005 at 09:50:18AM +0200, Sim Zacks wrote:
> Are there any differences between text and varchar? I found the following in
> the docs, which leads me to believe that there are no differences at all.
> Can someone please confirm this before I switch all my varchars to text?
Correct. The only difference between varchar and text is that varchar
can have a maximum length, which will be checked. As for storage used,
indexability, operators, etc they're identical.
Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aaron Steele | 2005-01-05 18:17:39 | warning: pg_query(): Query failed |
| Previous Message | Frank D. Engel, Jr. | 2005-01-05 18:04:33 | Re: problem finding the 8.0.3RC download |