From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mindaugas Riauba <mind@bi.lt>
Cc: pgsql-performance@postgresql.org
Subject: Re: Degrading performance
Date: Mon, 02 Jun 2003 09:36:31 -0400
Message-ID: <7850.1054560991@sss.pgh.pa.us> (raw)
In-Reply-To: <005a01c328c8$885b9760$f20214ac@bite.lt>
References: <005a01c328c8$885b9760$f20214ac@bite.lt>
"Mindaugas Riauba" <mind@bi.lt> writes:
> I have table with slowly degrading performance. Table is special is
> such way that all its rows are updated every 5 minutes (routers interfaces).
> vacuum does not help. vacuum full does but I'd like to avoid it.
VACUUM will do the trick, you just need to do it every five minutes or
so. I suggest a cron job to vacuum just the one table.
> INFO: Rel ifdata: Pages: 4887 --> 17; Tuple(s) moved: 776.
> CPU 0.30s/0.35u sec elapsed 1.65 sec.
That says you waited way too long to vacuum --- over two hundred update
cycles, evidently.
regards, tom lane
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: tgl@sss.pgh.pa.us, mind@bi.lt
Subject: Re: Degrading performance
In-Reply-To: <7850.1054560991@sss.pgh.pa.us>
References: <005a01c328c8$885b9760$f20214ac@bite.lt> <7850.1054560991@sss.pgh.pa.us>
* 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