Size of tuples

From: "Alex Turner" <armtuk(at)gmail(dot)com>
To: "pgsql general" <pgsql-general(at)postgresql(dot)org>
Subject: Size of tuples
Date: 2006-10-10 00:10:56
Message-ID: 33c6269f0610091710l1d15e41ep5637420ba3b90bb4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a table whose definition is basically

create table foo (
a int,
b int,
c int,
d date
);

and when fully populated, select relpages*8192::long/reltuples from pg_class
where relname='foo';
gives around 52. Why is it so wide when there are only 4*4=16 bytes of
actual data?
The table was populated in one big go, and there have been 0 deletes or
updates, althought I did do a few truncates, but I thought that basically
zeroed everything?

Alex.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message George Pavlov 2006-10-10 01:00:19 Re: postgres query log analysis?
Previous Message Tom Lane 2006-10-09 22:36:33 Re: pg_autovacuum taking locks on multiple tables at the same time