Re: Free space management within heap page - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Free space management within heap page
Date
Msg-id 45B60B3F.2030707@enterprisedb.com
Whole thread Raw
In response to Re: Free space management within heap page  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Responses Re: Free space management within heap page  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-hackers
ITAGAKI Takahiro wrote:
> BLCKSZ is typically 8192 bytes and sizeof(ItemPointerData) is 4 bytes.
> 1/4 comes from 8192 / 4 = 2048. If we allow zero-size tuples, the line
> pointers area can bloat up to the ratio. We have tuples no less than
> 32 bytes-size, so the area is restricted 256 bytes now.

sizeof(ItemPointerData) == 6 bytes

> We can recycle unused line pointers, but we cannot shrink the area unless
> the tail end of line pointers are removed. i.e, unusable free space will
> remains at the middle of LP area. 

Yeah, agreed. It'd still be a good idea to do it when possible.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: regular expressions stranges
Next
From: Lukas Kahwe Smith
Date:
Subject: Re: Updateable cursors