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
Re: Optimization of this SQL sentence |
| Список | 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 по дате отправления: