Re: Reduce the size of PageFreeSpaceInfo on 64bit platform

Поиск
Список
Период
Сортировка
От Decibel!
Тема Re: Reduce the size of PageFreeSpaceInfo on 64bit platform
Дата
Msg-id 20070810194755.GE20424@nasby.net
обсуждение исходный текст
Ответ на Reduce the size of PageFreeSpaceInfo on 64bit platform  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: Reduce the size of PageFreeSpaceInfo on 64bit platform  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-patches
On Fri, Aug 10, 2007 at 10:32:35AM +0900, ITAGAKI Takahiro wrote:
> Here is a patch to reduce the size of PageFreeSpaceInfo on 64bit platform.
> We will utilize maintenance_work_mem twice with the patch.
>
> The sizeof(PageFreeSpaceInfo) is 16 bytes there because the type of 'avail'
> is 'Size', that is typically 8 bytes and needs to be aligned in 8-byte bounds.
> I changed the type of the field to uint32. We can store the freespace with
> uint16 at smallest, but the alignment issue throws it away.

So... does that mean that the comment in the config file about 6 bytes
per page is incorrect?
--
Decibel!, aka Jim Nasby                        decibel@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

Вложения

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

Предыдущее
От: "Brendan Jurd"
Дата:
Сообщение: Re: [HACKERS] Function structure in formatting.c
Следующее
От: Pavel Ajtkulov
Дата:
Сообщение: Re: strpos() && KMP