pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lane Van Ingen <lvaningen@esncc.com>
To: pgsql-performance@postgresql.org
Subject: How to Trigger An Automtic Vacuum on Selected Tables
Date: Thu, 29 Sep 2005 19:05:36 -0400
Message-ID: <EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.com> (raw)

I am running version 8.0.1 on Windows 2003. I have an application that
subjects PostgreSQL to sudden bursts of activity at times which cannot be
predicted. The bursts are significant enough to cause performance
degradation, which can be fixed by a 'vacuum analyze'.

I am aware of the existence and contents of tables like pg_class.

QUESTION: I would like to trigger a vacuum analyze process on a table
whenever it gets a large enough burst of activity to warrant it. Using the
data in pg_class (like the number of pages the system found the last time it
was vacuumed / analyzed), I would like to compare those statistics to
current size, and trigger a vacuum/analyze on a table if needed.

Does anyone know of any available tools, or an approach I could use, to
determine what the CURRENT SIZE is ?





view thread (2+ messages)  latest in thread

Message-ID: <EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.com>
Permalink:  ../EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.com/
Also on:    postgresql.org/message-id/EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.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-performance@postgresql.org
  Cc: lvaningen@esncc.com
  Subject: Re: How to Trigger An Automtic Vacuum on Selected Tables
  In-Reply-To: <EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.com>
  References: <EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.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