pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Seum-Lim Gan <slgan@lucent.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: index file bloating still in 7.4 ?
Date: Sun, 19 Oct 2003 12:04:23 -0700
Message-ID: <200310191204.23888.josh@agliodbs.com> (raw)
In-Reply-To: <p05100318bbb86e62801a@[192.168.10.52]>
References: <p0510030cbbb7667a7f87@[192.168.10.52]>
	<19692.1066578442@sss.pgh.pa.us>
	<p05100318bbb86e62801a@[192.168.10.52]>

Gan,

> Oh, so in order to reclaim the disk space, we must run
> reindex or vacuum full ?
> This will lock out the table and we won't be able to do anything.
> Looks like this is a problem. It means we cannot use it for
> 24x7 operations without having to stop the process and do the vacuum full
> and reindex. Is there anything down the road that these operations
> will not lock out the table ?

I doubt it; the amount of page-shuffling required to reclaim 90% of the space 
in an index for a table that has been mostly cleared is substantial, and 
would prevent concurrent access.

Also, you seem to have set up an impossible situation for VACUUM.   If I'm 
reading your statistics right, you have a large number of threads accessing 
most of the data 100% of the time, preventing VACUUM from cleaning up the 
pages.    This is not, in my experience, a realistic test case ... there are 
peak and idle periods for all databases, even webservers that have been 
slashdotted. 

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (18+ messages)  latest in thread

Message-ID: <200310191204.23888.josh@agliodbs.com>
Permalink:  ../200310191204.23888.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200310191204.23888.josh@agliodbs.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, slgan@lucent.com, tgl@sss.pgh.pa.us
  Subject: Re: index file bloating still in 7.4 ?
  In-Reply-To: <200310191204.23888.josh@agliodbs.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