Re: Massive performance issues

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Massive performance issues
Дата
Msg-id 20050901193331.GA31313@surnet.cl
обсуждение исходный текст
Ответ на Re: Massive performance issues  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
Список pgsql-performance
On Thu, Sep 01, 2005 at 02:04:54PM -0400, Merlin Moncure wrote:
> >                   Table "public.address"
> >         Column        |          Type          | Modifiers
> > ----------------------+------------------------+-----------
> >  postcode_top         | character varying(2)   | not null
> >  postcode_middle      | character varying(4)   | not null
> >  postcode_bottom      | character varying(7)   | not null
>
> consider making above fields char(x) not varchar(x) for small but
> important savings.

Huh, hang on -- AFAIK there's no saving at all by doing that.  Quite the
opposite really, because with char(x) you store the padding blanks,
which are omitted with varchar(x), so less I/O (not necessarily a
measurable amount, mind you, maybe even zero because of padding issues.)

--
Alvaro Herrera -- Valdivia, Chile         Architect, www.EnterpriseDB.com
You liked Linux a lot when he was just the gawky kid from down the block
mowing your lawn or shoveling the snow. But now that he wants to date
your daughter, you're not so sure he measures up. (Larry Greenemeier)

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

Предыдущее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: Massive performance issues
Следующее
От: "Luke Lonergan"
Дата:
Сообщение: Re: Poor performance on HP Package Cluster