VARCHAR vs TEXT

From: "Aasmund Midttun Godal" <postgresql(at)envisity(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: VARCHAR vs TEXT
Date: 2001-10-10 23:32:07
Message-ID: 20011010233207.4159.qmail@ns.krot.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I am sure this question has been answered in some form or another before, but I can't really find anything on exactly this issue.

Are there any differences between varchar and text other than

1. varchar has limited size
2. varchar is SQL 92 text is not?

Especially regarding performance.

Or am I correct to assume that if you need a place to store some text, and you are not sure how much (like an email address or a name) you are best off using text?

Aasmund Midttun Godal

aasmund(at)godal(dot)com - http://www.godal.com/
+47 40 45 20 46

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-10-11 00:18:25 Re: VARCHAR vs TEXT
Previous Message Aasmund Midttun Godal 2001-10-10 21:07:27 Restricting access to large objects.