pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bastian Voigt <post@bastian-voigt.de>
To: pgsql-performance@postgresql.org
Subject: Re: My quick and dirty "solution" (Re: Performance Problem with Vacuum of bytea table (PG 8.0.13))
Date: Fri, 25 May 2007 16:06:14 +0200
Message-ID: <4656ED56.608@bastian-voigt.de> (raw)
In-Reply-To: <AA61A5EE-3AF2-4902-9C49-9A8A7A136066@skype.net>
References: <46569E6A.2060509@bastian-voigt.de>
	<4656BB5E.3000109@archonet.com>
	<4656BEF1.4050609@bastian-voigt.de>
	<4656C1C7.3000003@archonet.com>
	<4656C411.8010509@bastian-voigt.de>
	<4656CDC2.6030106@archonet.com>
	<4656D6EC.5060506@bastian-voigt.de>
	<AA61A5EE-3AF2-4902-9C49-9A8A7A136066@skype.net>

Kristo Kaiv wrote:
> you should first cluster the table on primary key.
> The table is probably already bloated from the 3 hr delay it had before.
> First
> CLUSTER "primary key index name" ON group_fin_account_tst;
> Then
> vacuum it every 3 minutes.
> NB! clustering takes an access exclusive lock on table
Kristo,
thanks a bunch!!
This was the solution...
The cluster operation took about 60sec, and after it was done the vacuum 
finished in only 10sec. or so, with no noticeable performance 
bottleneck. Now vacuum is running every 2-3 minutes and makes no problems.

Hhhh, now I can look forward to a laid-back weekend..

Richard, Kristo, Alvaro, thanks 1000 times for responding so quickly

:-)

-- 
Bastian Voigt
Neumünstersche Straße 4
20251 Hamburg
telefon +49 - 40  - 67957171
mobil   +49 - 179 - 4826359





view thread (7+ messages)  latest in thread

Message-ID: <4656ED56.608@bastian-voigt.de>
Permalink:  ../4656ED56.608@bastian-voigt.de/
Also on:    postgresql.org/message-id/4656ED56.608@bastian-voigt.de

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: post@bastian-voigt.de
  Subject: Re: My quick and dirty "solution" (Re: Performance Problem with Vacuum of bytea table (PG 8.0.13))
  In-Reply-To: <4656ED56.608@bastian-voigt.de>

* 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