Re: Reduce the size of PageFreeSpaceInfo on 64bit platform - Mailing list pgsql-patches

From Decibel!
Subject Re: Reduce the size of PageFreeSpaceInfo on 64bit platform
Date
Msg-id 20070810194755.GE20424@nasby.net
Whole thread Raw
In response to Reduce the size of PageFreeSpaceInfo on 64bit platform  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Responses Re: Reduce the size of PageFreeSpaceInfo on 64bit platform  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List 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)

Attachment

pgsql-patches by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: [HACKERS] Function structure in formatting.c
Next
From: Pavel Ajtkulov
Date:
Subject: Re: strpos() && KMP