Re: storage calculations

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: storage calculations
Date: 2003-07-31 16:58:20
Message-ID: 20030731165820.GD15615@libertyrms.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Jul 31, 2003 at 08:51:09AM -0400, pgboy(at)guthrie(dot)charm(dot)net wrote:
>
> well, i can admit that i am confused. my assumption is that when a row
> is deleted in pg, that row is merely marked as 'gone' until a vacuum-full
> is done. my further assumption is that if i continue to add rows, those
> rows are not necessarily appended to the end of the physical data file,
> but can be written over 'deleted' rows.

Your assumption is wrong. VACUUM without FULL will allow you to
write over the free space now available in your data files, subject
to the limitations of tracking as determined by your FSM settings.

VACUUM FULL actually shortens the data file. Except for cases having
to do with large tuples that won't fit in the previous page, VACUUM
FULL means that you can't fit any more data in that file, once the
VACUUM FULL is done.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message pgboy 2003-07-31 17:41:54 Re: storage calculations
Previous Message Benjamin Thelen (CCGIS) 2003-07-31 16:42:33 Re: changing ownership of db