Re: size of bytea + performance issues

Поиск
Список
Период
Сортировка
От tschak
Тема Re: size of bytea + performance issues
Дата
Msg-id 1138727718.556937.245840@o13g2000cwo.googlegroups.com
обсуждение исходный текст
Ответ на Re: size of bytea + performance issues  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: size of bytea + performance issues  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Allright... do you mean an alignment with an offset of 4/8 bit or byte?
If it is just bit I cannot really follow the calculation...
Nevertheless it sounds like an explanation for this "effect".

I have one more question concerning size. The following table
create table test(val0 unsigned smallint,
... ... ... .. ..., val7 unsigned smallint,
bulk bytea);

needs app. 100 Bytes per row even though the user data only uses
8*2Bytes (vali) + 40Bytes (the sizye of my bytea). Does that mean, that
the system needs 46 bytes for internal represantationsor is the
alignment factor a again a source of this "blowup"?

Thanks for your help,
Tschak


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: size of bytea + performance issues
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: 8.0.3 regexp_replace()...