Re: varchar vs text - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: varchar vs text
Date
Msg-id 20050105181240.GA26062@svana.org
Whole thread Raw
In response to varchar vs text  ("Sim Zacks" <sim@nospam.com>)
List 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@svana.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.

Attachment

pgsql-general by date:

Previous
From: "Frank D. Engel, Jr."
Date:
Subject: Re: problem finding the 8.0.3RC download
Next
From: Aaron Steele
Date:
Subject: warning: pg_query(): Query failed