Re: [HACKERS] varchar(), text,char() overhead

Поиск
Список
Период
Сортировка
От Vadim B. Mikheev
Тема Re: [HACKERS] varchar(), text,char() overhead
Дата
Msg-id 34C6C16E.985FF25C@sable.krasnoyarsk.su
обсуждение исходный текст
Ответ на Re: [HACKERS] varchar(), text,char() overhead  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
>
> > > I had forgotten about your mention of this.  I am running some tests
> > > now, and things look promising.  However, if we go to 64k or 128k
> > > tuples, we would be in trouble.  (We can do 64k tuples by changing the
> >           ^^^^^^^^^^^^^^^^^^^^^^
> > Also, multi-representation feature allows to have 2Gb in varlena fields.
>
> What is multi-representation feature?  Large objects?

Yes. Server could store varlena fields in LO when size of field or
tuple at whole is too big to be stored in relation blocks.
This allows to have tuples much longer than data blocks.
This is also Ok for performance sometime (if big varlenas are not used
in WHERE they could be not read from disk for each tuple; if UPDATE don't
change out-stored varlenas they could be not stored twice).

We could use vl_len < 0 for out-stored varlenas: vl_len = -1000
could mean that size of data is 1000 bytes, data stored in LO and
LO' id (oid?) is in vl_dat. It seems easy to implement (without
optimization of access to data).

Vadim

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Current open 6.3 issues
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: [HACKERS] Current open 6.3 issues