TEXT vs VARCHAR - Mailing list pgsql-general

From chris markiewicz
Subject TEXT vs VARCHAR
Date
Msg-id 008e01c032ea$52c6a4e0$dbb846c6@cmarkiewicz
Whole thread Raw
In response to Re: Some advanced database features, are they present in PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: TEXT vs VARCHAR  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-general by date:

Previous
From: Marc SCHAEFER
Date:
Subject: Re: Some advanced database features, are they present in PostgreSQL
Next
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: Re: [ADMIN] PostgreSQL encoding question