Re: Fixed length data types issue

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Fixed length data types issue
Дата
Msg-id 20060907110233.GG10093@svana.org
обсуждение исходный текст
Ответ на Re: Fixed length data types issue  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Fixed length data types issue  (Gregory Stark <stark@enterprisedb.com>)
Re: Fixed length data types issue  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Sep 07, 2006 at 11:57:26AM +0100, Gregory Stark wrote:
> Just brain storming here. But what happens if we make Datum 2*sizeof(pointer)
> and stored the typmod and/or attlen in it?

The fundamental property of a Datum is that you can pass it by value to
a C function. This generally means it has to fit in a register. On the
whole, the CPU register size is the same as the pointer size, so
2*sizeof(pointer) is unlikely to fit...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Fixed length data types issue
Следующее
От: Gevik Babakhani
Дата:
Сообщение: Re: UUID/GUID discussion leading to request for hexstring bytea?