Re: Type TEXT

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Joo Paulo Batistella <batistellabr(at)yahoo(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Type TEXT
Date: 2002-07-11 17:40:35
Message-ID: 1026409237.15864.30.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2002-07-11 at 18:18, Joo Paulo Batistella wrote:

> I'm new to Postgre and I would like to know if is
> there any problem of type text compared to VARCHAR?

If you *know* that the length of text cannot or must not exceed n
characters, use VARCHAR(n); otherwise use TEXT.

There is no performance loss from using TEXT.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"I waited patiently for the LORD; and he inclined unto
me, and heard my cry. He brought me up also out of an
horrible pit, out of the miry clay, and set my feet
upon a rock, and established my goings. And he hath
put a new song in my mouth, even praise unto our God.
Many shall see it, and fear, and shall trust in the
LORD." Psalms 40:1-3

In response to

  • Type TEXT at 2002-07-11 17:18:07 from Joo Paulo Batistella

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matt Price 2002-07-11 17:52:42 Re: web archiving
Previous Message Thomas Lockhart 2002-07-11 17:38:17 Re: workaround for lack of REPLACE() function