Re: text vs varchar(n)

Поиск
Список
Период
Сортировка
От Einar Karttunen
Тема Re: text vs varchar(n)
Дата
Msg-id 20020218055439.GB6129@shellak.helsinki.fi
обсуждение исходный текст
Ответ на text vs varchar(n)  (Richard Emberson <emberson@phc.net>)
Ответы Re: text vs varchar(n)
Список pgsql-general
On 17.02.02 21:52 -0800(+0000), Richard Emberson wrote:
> Which is faster read and write, a table with text or varchar types:
>
> ...
>
> Why would one every use varchar(n) instead of text (aside from non-sql
> standard)?
>

Varchar(n) and text have the same performance. The difference is that
varchars are silently cut if they are longer than the limit specified.
In most cases you want to stick with text.

- Einar Karttunen

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: calculating spherical distance in sql
Следующее
От: "PG Explorer"
Дата:
Сообщение: Re: Looking for a function