Re: Short row header

From: Gregory Stark <stark(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 09:05:47
Message-ID: 87tzt3f11w.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


"PFC" <lists(at)peufeu(dot)com> writes:

> 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 ? (even if this makes the tuples non-updateable, as long as they
> can be deleted, it would be OK for this type of tables).

It wouldn't actually speed up anything unless the space it frees up was then
used by something. That would mean loading one of your polls into the small
bits of space freed up in every page. For most tables like this you want to do
large bulk loads and want your loads stored quickly in contiguous space so it
can be accessed quickly, not spread throughout the table.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Sergey Konoplev 2007-06-20 12:44:02 cached entities
Previous Message Heikki Linnakangas 2007-06-20 08:36:05 Re: Short row header