pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Cc: Pavan Deolasee <pavan.deolasee@gmail.com>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Free space management within heap page
Date: Tue, 23 Jan 2007 13:18:55 +0000
Message-ID: <45B60B3F.2030707@enterprisedb.com> (raw)
In-Reply-To: <20070123191419.55E4.ITAGAKI.TAKAHIRO@oss.ntt.co.jp>
References: <20070123181802.55E1.ITAGAKI.TAKAHIRO@oss.ntt.co.jp>
	<45B5DEBF.3090200@enterprisedb.com>
	<20070123191419.55E4.ITAGAKI.TAKAHIRO@oss.ntt.co.jp>

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



view thread (19+ messages)  latest in thread

Message-ID: <45B60B3F.2030707@enterprisedb.com>
Permalink:  ../45B60B3F.2030707@enterprisedb.com/
Also on:    postgresql.org/message-id/45B60B3F.2030707@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: heikki@enterprisedb.com, itagaki.takahiro@oss.ntt.co.jp, pavan.deolasee@gmail.com, kleptog@svana.org
  Subject: Re: Free space management within heap page
  In-Reply-To: <45B60B3F.2030707@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox