pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Nilesh Govindarajan <lists@itech7.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Execute VACUUM FULL when DB touches a specific size ?
Date: Sun, 4 Apr 2010 21:24:50 -0600
Message-ID: <j2idcc563d11004042024w10c18f0etb2738c62290a663b@mail.gmail.com> (raw)
In-Reply-To: <4BB94934.3050709@itech7.com>
References: <4BB94934.3050709@itech7.com>

On Sun, Apr 4, 2010 at 8:21 PM, Nilesh Govindarajan <lists@itech7.com> wrote:
> Hi,
>
> I wish to execute VACUUM FULL when DB touches a specific size. How to do it
> ?
>
> I'm aware about the caveats of VACUUM FULL.
>

Write a bash script that cds to the data dir and runs du -s, grabs the
value, and if it's over a certain size then run vacuum full.



view thread (5+ messages)  latest in thread

Message-ID: <j2idcc563d11004042024w10c18f0etb2738c62290a663b@mail.gmail.com>
Permalink:  ../j2idcc563d11004042024w10c18f0etb2738c62290a663b@mail.gmail.com/
Also on:    postgresql.org/message-id/j2idcc563d11004042024w10c18f0etb2738c62290a663b@mail.gmail.com

 · 

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: scott.marlowe@gmail.com, lists@itech7.com
  Subject: Re: Execute VACUUM FULL when DB touches a specific size ?
  In-Reply-To: <j2idcc563d11004042024w10c18f0etb2738c62290a663b@mail.gmail.com>
  References: <4BB94934.3050709@itech7.com> <j2idcc563d11004042024w10c18f0etb2738c62290a663b@mail.gmail.com>

* 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