RE: couple of general questions - Mailing list pgsql-general

From Harrelson, CulleyX
Subject RE: couple of general questions
Date
Msg-id C763901E8272D411962F009027AE9D3E04F0DC35@FMSMSX36
Whole thread Raw
In response to couple of general questions  (Culley Harrelson <culleyharrelson@yahoo.com>)
Responses Re: RE: couple of general questions  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general


------------------------
Best, depending on the scenario. In cases where you are using a fixed number
of characters, there's no need for the overhead of a varchar. For instance
if you are storing state abbreviations, they will ALWAYS be 2 characters.
The database can look up those fixed fields faster. But if you are storing
full state names, it would be a waste to have all those passing spaces so
that you could fit Mississippi with Maine. All that being said, it's my
understanding that there will be no benefit to using the CHAR type over the
VARCHAR type in 7.1 due to architectural changes.
-----------------------------------


Is there any difference between varchar and text other than varchar places a
cap on the number of characters?

Culley


pgsql-general by date:

Previous
From: Florent Guillaume
Date:
Subject: Arrays advanced usage
Next
From: Héctor Balanzar
Date:
Subject: Changing pgsql error messages...