From: Dario <dario_d_s@unitech.com.ar>
To: pgsql-performance@postgresql.org
Subject: Re: How to Trigger An Automtic Vacuum on Selected Tables
Date: Thu, 29 Sep 2005 21:05:45 -0300
Message-ID: <MHEDJHCKDNOEHJKHIOCJAEPCCHAA.dario_d_s@unitech.com.ar> (raw)
In-Reply-To: <EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.com>
Autovacuum does exactly what I understood you want :-)
-----Mensaje original-----
De: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org]En nombre de Lane Van
Ingen
Enviado el: jueves, 29 de septiembre de 2005 20:06
Para: pgsql-performance@postgresql.org
Asunto: [PERFORM] How to Trigger An Automtic Vacuum on Selected Tables
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 ?
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
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: dario_d_s@unitech.com.ar
Subject: Re: How to Trigger An Automtic Vacuum on Selected Tables
In-Reply-To: <MHEDJHCKDNOEHJKHIOCJAEPCCHAA.dario_d_s@unitech.com.ar>
References: <EKEMKEFLOMKDDLIALABIEECFCDAA.lvaningen@esncc.com> <MHEDJHCKDNOEHJKHIOCJAEPCCHAA.dario_d_s@unitech.com.ar>
* 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