pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: john <pgadmin.12.ptechjohn@spamgourmet.com>
To: pgsql-admin@postgresql.org
Subject: vacuuming and freed disk space
Date: 29 Apr 2003 19:37:08 -0400
Message-ID: <1051659428.2570.88.camel@bing> (raw)

i am looking at our database table maintenance. we are running a "space
watch" task that looks at available disk space and removes old records 
when/if a certain threshold is passed.

i've noticed that if i run a "bulk delete" followed by a vacuum the
actual disk space is usually not recovered. if i use "vacuum full"
instead of just plain "vacuum" the space is recovered (i am using df
to look at the partition usage statistics). also, if i run just plain
"vacuum" and wait around for a bit, eventually the space will be
recovered. i haven't nailed down whether this is because of other usage
or something that the server does...

so, the questions:
1) is there a way to recover the disk space without doing a "vacuum
full"? i don't want to do the table lock if i don't have to.
2) *is* the postgresql server periodically recovering that disk space?
if so, how often does it do this, and does it lock the table when it
does?
3) anyone have any other good ideas on how to implement this sort of
"space watch" functionality?

thanks.
john
-- 
john <pgadmin.12.ptechjohn@spamgourmet.com>




view thread (4+ messages)  latest in thread

Message-ID: <1051659428.2570.88.camel@bing>
Permalink:  ../1051659428.2570.88.camel@bing/
Also on:    postgresql.org/message-id/1051659428.2570.88.camel@bing

 · 

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: pgadmin.12.ptechjohn@spamgourmet.com
  Subject: Re: vacuuming and freed disk space
  In-Reply-To: <1051659428.2570.88.camel@bing>
  References: <1051659428.2570.88.camel@bing>

* 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