Re: Optimization of this SQL sentence

Поиск
Список
Период
Сортировка
От Mario Weilguni
Тема Re: Optimization of this SQL sentence
Дата
Msg-id 200610171729.19596.mweilguni@sime.com
обсуждение исходный текст
Ответ на Re: Optimization of this SQL sentence  (Alexander Staubo <alex@purefiction.net>)
Ответы Re: Optimization of this SQL sentence  ("Merlin Moncure" <mmoncure@gmail.com>)
Re: Optimization of this SQL sentence  (Mark Kirkwood <markir@paradise.net.nz>)
Список pgsql-performance
Am Dienstag, 17. Oktober 2006 11:52 schrieb Alexander Staubo:
> Lastly, note that in PostgreSQL these length declarations are not  
> necessary:
>
>    contacto varchar(255),
>    fuente varchar(512),
>    prefijopais varchar(10)
>
> Instead, use:
>
>    contacto text,
>    fuente text,
>    prefijopais text
>
> See the PostgreSQL manual for an explanation of varchar vs. text.

Enforcing length constraints with varchar(xyz) is good database design, not a
bad one. Using text everywhere might be tempting because it works, but it's
not a good idea.

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

Предыдущее
От: Alexander Staubo
Дата:
Сообщение: Re: Optimization of this SQL sentence
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Optimization of this SQL sentence