Re: diskspace

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Geoff Winkless *EXTERN*" <pgsqladmin(at)geoff(dot)dj>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: diskspace
Date: 2013-02-06 11:04:10
Message-ID: A737B7A37273E048B164557ADEF4A58B057B00E6@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Geoff Winkless wrote:
[trying to account for the disk space used]
> Of course I got that slightly wrong: ItemIdData is for each row, not for each column; an extra 4 bytes
> for each row makes the per-row space 290MB, leaving 167MB unexplained.

> I'm assuming the remaining 167MB is related to the alignment requirements, although that does seem
> quite a lot at 15 bytes per row (perhaps I'm just unfortunate with the data sizes resulting in poor
> alignment).
>
> I guess the answer to my question is that there is no answer to my question; pg just does use a
> massive (especially in relation to thin but tall tables) proportion of diskspace for its own purposes.

I doubt that PostgreSQL has substantially more disk overhead
than other DBMS with comparable capabilities (comparison with
flat files or MyISAM would be unfair).

Have you tried using pg_filedump
(http://pgfoundry.org/frs/?group_id=1000541)
to dump a page or two of your table and figure
out what is where and where the space went?

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Geoff Winkless 2013-02-06 11:12:46 Re: diskspace
Previous Message Geoff Winkless 2013-02-06 08:23:48 Re: diskspace