Re: varchar vs. text

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rachit Siamwalla <rachit(at)ensim(dot)com>
Cc: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: varchar vs. text
Date: 2001-07-10 23:37:59
Message-ID: 16406.994808279@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rachit Siamwalla <rachit(at)ensim(dot)com> writes:
> Is there any good reason to use VARCHAR over TEXT for a string field?

The only reason to use VARCHAR is if you *want* the data to be truncated
at a specific length. If you don't have a well-defined upper limit in
mind, I'd recommend TEXT.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-07-10 23:56:23 Re: Re: [OT] Any major users of postgresql?
Previous Message Bruce Momjian 2001-07-10 23:36:06 Re: Re: Time to read pg_hba.conf (Re: [PATCHES] [PATCH] Patch to make...)