Re: Number of attributes in HeapTupleHeader

Поиск
Список
Период
Сортировка
От Manfred Koizar
Тема Re: Number of attributes in HeapTupleHeader
Дата
Msg-id enhkdukog07gmurdhpsia9004lg2jqfr0r@4ax.com
обсуждение исходный текст
Ответ на Re: Number of attributes in HeapTupleHeader  ("Rod Taylor" <rbt@zort.ca>)
Список pgsql-hackers
On Wed, 8 May 2002 17:33:08 -0400, "Rod Taylor" <rbt@zort.ca> wrote:
>From: "Tom Lane" <tgl@sss.pgh.pa.us>
>> This has been discussed before --- in PG terms, it'd mean keeping
>the
>> OID of a rowtype in the tuple header.  (No, I won't let you get away
>> with a 1-byte integer.  But you could remove natts and hoff, thus
>> buying back 3 of the 4 bytes.)
>
>Could the OID be on a per page basis?  Rather than versioning each
>tuple, much with a page at a time?  Means when you update one in a
>page the rest need to be tested to ensure that they have the most
>recent type, [...]

Rod,
"to be tested" is not enough, they'd have to be converted, which means
they could grow, thus possibly using up the free space on the page.
Or did you mean to treat this just like a normal update?

I was rather thinking of some kind of a translation vector:  having 1
array of rowtype OIDs per relation and 1 byte per tuple pointing into
this array.  But that has been rejected.

So it seems we are getting off topic.  Initially this thread was about
reducing tuple header size, and now we've arrived at increasing the
size by one byte :-)

ServusManfred


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

Предыдущее
От: "Henshall, Stuart - WCP"
Дата:
Сообщение: PG+Cygwin Production Experience (was RE: Path to PostgreSQL porta biliy)
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: OK, lets talk portability.