Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id DE3FD9FB2C8 for ; Tue, 23 Jan 2007 09:43:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 35701-04 for ; Tue, 23 Jan 2007 09:43:43 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by postgresql.org (Postfix) with ESMTP id 8B1379FB2BE for ; Tue, 23 Jan 2007 09:43:43 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id 68so1023205wra for ; Tue, 23 Jan 2007 05:43:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Xpxs4xg2B+ZsWRgRDhgS0grLK3Y5rtwzOebL7jRu1z7r/n8twbmMzuRbCJNI3VoZReRoOmz9Hbh6CTpxDP/YgT8lSI5Xw5D3vJWq1Kncx/odaMkUwRFdUxH32kY+BDpuhQhPDaC1+pXntwdOWsD7WykBnT6SUipMz/scTb0dEk4= Received: by 10.78.180.18 with SMTP id c18mr350172huf.1169559819618; Tue, 23 Jan 2007 05:43:39 -0800 (PST) Received: by 10.78.81.13 with HTTP; Tue, 23 Jan 2007 05:43:39 -0800 (PST) Message-ID: <2e78013d0701230543k54087265tce71bf74155dc8b1@mail.gmail.com> Date: Tue, 23 Jan 2007 19:13:39 +0530 From: "Pavan Deolasee" To: "Heikki Linnakangas" Subject: Re: Free space management within heap page Cc: "ITAGAKI Takahiro" , "Martijn van Oosterhout" , pgsql-hackers@postgresql.org In-Reply-To: <45B60B3F.2030707@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_173676_7663763.1169559819520" References: <20070123181802.55E1.ITAGAKI.TAKAHIRO@oss.ntt.co.jp> <45B5DEBF.3090200@enterprisedb.com> <20070123191419.55E4.ITAGAKI.TAKAHIRO@oss.ntt.co.jp> <45B60B3F.2030707@enterprisedb.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/1055 X-Sequence-Number: 96956 ------=_Part_173676_7663763.1169559819520 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/23/07, Heikki Linnakangas wrote: > > 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 > > I guess ITAGAKI meant sizeof(ItemIdData) which is 4 bytes. Thats the data type for the line pointer. Thanks, Pavan EnterpriseDB http://www.enterprisedb.com ------=_Part_173676_7663763.1169559819520 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On 1/23/07, Heikki Linnakangas <heikki@enterprisedb.com> wrote:
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


I guess ITAGAKI meant sizeof(ItemIdData) which is 4 bytes. Thats the data type
for the line pointer.

Thanks,
Pavan

EnterpriseDB     http://www.enterprisedb.com ------=_Part_173676_7663763.1169559819520--