Re: Datatypes and performance

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Datatypes and performance
Дата
Msg-id 20030704152812.GB19733@dcc.uchile.cl
обсуждение исходный текст
Ответ на Datatypes and performance  ("Jay O'Connor" <joconnor@cybermesa.com>)
Список pgsql-general
On Fri, Jul 04, 2003 at 09:10:41AM -0700, Jay O'Connor wrote:

> I created a database schema and based on the test data I had to work with,
> I couldn't really determine the max size of a lot of string fields so I
> just left a lot of fields as varchar
>
> A comment from a coworker was that this would cause a performance problem
>
> Based on the docs, they say that there's not performance difference between
> using varchar(n) and text.

The only difference comes from checking the length for the limited
fields, so varchar(n) will be very slightly slower than text.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"There was no reply" (Kernel Traffic)

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

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Datatypes and performance
Следующее
От: Weiping He
Дата:
Сообщение: Re: any body using Solaris8 with postgresql 7.3.3