varchar vs. text - Mailing list pgsql-hackers

From Rachit Siamwalla
Subject varchar vs. text
Date
Msg-id 9AC41B8C4781464695BB013F106FCA31D2BE7C@nasdaq.ms.ensim.com
Whole thread Raw
Responses Re: varchar vs. text
Re: varchar vs. text
List pgsql-hackers
Is there any good reason to use VARCHAR over TEXT for a string field? ie.
performance hits, etc.

Other than running into the row size limit problem, are there any large
storage / performance penalties of using TEXT for virtually all strings?

For ex. A phone number. This field probably wouldn't be bigger that 40
characters, but I can use TEXT and be sure that nothing gets truncated. Same
with a "name" field.

-rchit


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: JDBC Support - prepared Statements?
Next
From: "John Moore"
Date:
Subject: Re: [OT] Any major users of postgresql?