Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2FD999FB5F0 for ; Wed, 20 Jun 2007 05:36:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 36194-08 for ; Wed, 20 Jun 2007 05:36:37 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id D086D9FB5D3 for ; Wed, 20 Jun 2007 05:36:40 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id u2so328506uge for ; Wed, 20 Jun 2007 01:36:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=M3bawYPwmef47ysc82p5s0HUf+YyZLhgEwvBqnXB55kETR02pmNmNfJKCuk+C30ol+FnyiooKEKxyIwTtuT03wYPzNDnfen+9TCfIO12kK50J9CRTxz+ow+pGYg5tnPKkz5rkOkRH06E+cglaXV4qo7PlZRMh4KPF826hiXpLnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=O18qs8ynzuZ5TAIeGA8Zd4Z/SfDgoYQGEqBl0vMwlEgg4T+7GvFmLU+r3vvHX28lIQFnBjuoQRBZO/v3EwjGJUY0SaTANafco+gd6a03TLXHgqGsia1PEDc0KaXa0wUok6jB2cbGI467CvKMGnF7QlQo3CSyHsbDgq0T7ntt/+0= Received: by 10.67.30.3 with SMTP id h3mr1091442ugj.1182328599326; Wed, 20 Jun 2007 01:36:39 -0700 (PDT) Received: from ?172.24.32.117? ( [62.232.55.118]) by mx.google.com with ESMTP id a1sm3339229ugf.2007.06.20.01.36.36 (version=SSLv3 cipher=RC4-MD5); Wed, 20 Jun 2007 01:36:38 -0700 (PDT) Message-ID: <4678E6F5.6040300@enterprisedb.com> Date: Wed, 20 Jun 2007 09:36:05 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: PFC CC: pgsql-performance@postgresql.org Subject: Re: Short row header References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/408 X-Sequence-Number: 25441 PFC wrote: > > I have this "poll results" table with just 3 integer fields, which > is never updated, only inserted/deleted... > Did the Devs consider an option to have VACUUM reduce the row header > sizes for tuples that are long commited and are currently visible to all > transactions ? That has been suggested before, but IIRC it wasn't considered to be worth it. It would only save 4 bytes (the xmin field) per tuple, the free space would be scattered around all pages making it less useful, and having to deal with two different header formats would make accessing the header fields more complex. > (even if this makes the tuples non-updateable, as long as > they can be deleted, it would be OK for this type of tables). That would save another 6 bytes per tuple (ctid field), but we generally stay away from things that impose limitations like that. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com