Re: storage calculations - Mailing list pgsql-admin

From Andrew Sullivan
Subject Re: storage calculations
Date
Msg-id 20030731165820.GD15615@libertyrms.info
Whole thread Raw
In response to Re: storage calculations  (pgboy@guthrie.charm.net)
Responses Re: storage calculations  (pgboy@guthrie.charm.net)
List pgsql-admin
On Thu, Jul 31, 2003 at 08:51:09AM -0400, pgboy@guthrie.charm.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@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


pgsql-admin by date:

Previous
From: pgboy@guthrie.charm.net
Date:
Subject: Re: storage calculations
Next
From: "Benjamin Thelen (CCGIS)"
Date:
Subject: Re: changing ownership of db