Re: Short row header

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: PFC <lists(at)peufeu(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Short row header
Date: 2007-06-20 08:36:05
Message-ID: 4678E6F5.6040300@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gregory Stark 2007-06-20 09:05:47 Re: Short row header
Previous Message PFC 2007-06-20 07:54:32 Short row header