pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-admin@postgresql.org
Subject: Re: storage calculations
Date: Thu, 31 Jul 2003 12:58:20 -0400
Message-ID: <20030731165820.GD15615@libertyrms.info> (raw)
In-Reply-To: <Pine.LNX.4.50.0307310844001.30174-100000@guthrie.charm.net>
References: <Pine.LNX.4.50.0307310844001.30174-100000@guthrie.charm.net>

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




view thread (8+ messages)  latest in thread

Message-ID: <20030731165820.GD15615@libertyrms.info>
Permalink:  ../20030731165820.GD15615@libertyrms.info/
Also on:    postgresql.org/message-id/20030731165820.GD15615@libertyrms.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: storage calculations
  In-Reply-To: <20030731165820.GD15615@libertyrms.info>
  References: <Pine.LNX.4.50.0307310844001.30174-100000@guthrie.charm.net> <20030731165820.GD15615@libertyrms.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox