TEXT datatype: compared to CHAR and VARCHAR - Mailing list pgsql-general

From Nikola Milutinovic
Subject TEXT datatype: compared to CHAR and VARCHAR
Date
Msg-id 3BFE4463.8070500@ev.co.yu
Whole thread Raw
Responses Re: TEXT datatype: compared to CHAR and VARCHAR  (Einar Karttunen <ekarttun@cs.helsinki.fi>)
List pgsql-general
Hi all.

One quick question. I have a doubt, should I use CHAR/VARCHAR or TEXT
data types in my database?

Two points are of most concern:

- performance
- compatibility

Is VARCHAR faster for access/storing operations than TEXT? Since it
specifies the max. amount of space, one would think that it is better...

If I should choose to migrate my data to, say, Oracle, will TEXT field
cause problems in any way? I would have to rewrite the schema
definition, which can be painful for a larger database...

Your thoughts?

Nix.


pgsql-general by date:

Previous
From: Nikola Milutinovic
Date:
Subject: Classes (Object Oriented) in PostgreSQL question
Next
From: Philip Neukom
Date:
Subject: Re: Postmaster on OSX 10.1.1 what's the deal?