Re: text vs. varchar

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: text vs. varchar
Дата
Msg-id AANLkTil--1uyVh-vCRrIsTwor-iNmWZwZaNH8H4OSLts@mail.gmail.com
обсуждение исходный текст
Ответ на text vs. varchar  (Ben Chobot <bench@silentmedia.com>)
Ответы Re: text vs. varchar  (Ben Chobot <bench@silentmedia.com>)
Список pgsql-general
On 21 July 2010 16:58, Ben Chobot <bench@silentmedia.com> wrote:
> Is there any difference between "text" and "varchar" data types? (Not varchar(n), just varchar.) I can't see a
differentfrom the manual page, but I'm wondering about index usage or something similarly subtle. 
> --

Here's what Tom Lane had to say on the matter when I asked previously:

"There is some potential overhead from using varchar instead of text
because of the extra dummy cast nodes that are likely to be present in
your query expressions (since all the native functions are declared to
take/return text, not varchar).  In most cases I'd think you'd be
hard-put to measure any difference though."

Thom

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

Предыдущее
От: "Peter C. Lai"
Дата:
Сообщение: Re: text vs. varchar
Следующее
От: Ben Chobot
Дата:
Сообщение: Re: text vs. varchar