TEXT vs VARCHAR

From: "chris markiewicz" <cmarkiew(at)commnav(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: TEXT vs VARCHAR
Date: 2000-10-10 18:45:54
Message-ID: 008e01c032ea$52c6a4e0$dbb846c6@cmarkiewicz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hello.

i am faced with a situation where i must store a potentially large ascii
string (several thousand characters?). i am looking for some insight beyond
what the documentation offers...

is there a limit on the upper limit of a VARCHAR? i cannot find one in the
documentation.

is it true that a TEXT field can be any size?

what is the best way to manage memory? for example, if i declare it as
VARCHAR(10000), does that mean that memory for 10,000 characters will be
allocated whether i use it or not, or is it dynamic? how about the TEXT
type.

thanks
chris

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Trond Eivind =?iso-8859-1?q?Glomsr=F8d?= 2000-10-10 18:46:43 Re: Re: [ADMIN] PostgreSQL encoding question
Previous Message Lamar Owen 2000-10-10 18:35:28 Re: PostgreSQL encoding question