Re: Type TEXT

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Type TEXT
Дата
Msg-id 1026409237.15864.30.camel@linda
обсуждение исходный текст
Ответ на Type TEXT  ("João" Paulo Batistella <batistellabr@yahoo.com.br>)
Ответы Re: Type TEXT
Список 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.Elphick@lfix.co.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


В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Albertson
Дата:
Сообщение: Re: Query Speed!!!
Следующее
От: chris.gamble@CPBINC.com
Дата:
Сообщение: Case Sensitivity and Indexes