Received: from gromit.dotclick.com (host178.mydotclick.com [64.2.137.178]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0SKU6l31388; Mon, 28 Jan 2002 15:30:06 -0500 (EST) (envelope-from markw@mohawksoft.com) Received: from mohawksoft.com (IDENT:markw@localhost.localdomain [127.0.0.1]) by gromit.dotclick.com (8.9.3/8.9.3) with ESMTP id PAA06059; Mon, 28 Jan 2002 15:30:31 -0500 Message-ID: <3C55B4E7.29F287B2@mohawksoft.com> Date: Mon, 28 Jan 2002 15:30:31 -0500 From: mlw X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: Justin Clift CC: Tom Lane , Zeugswetter Andreas SB SD , Vince Vielhaber , pgsql-hackers@postgresql.org Subject: Re: sequence indexes References: <46C15C39FEB2C44BA555E356FBCD6FA42128E2@m0114.s-mxs.net> <6862.1011996346@sss.pgh.pa.us> <3C5263F6.1BADDB0B@postgresql.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200201/1279 X-Sequence-Number: 18244 Justin Clift wrote: > > Tom Lane wrote: > > > > "Zeugswetter Andreas SB SD" writes: > > >> I've looked at the problem a little bit --- there's literature more > > >> recent than Lehmann-Yao that talks about how to do btree compaction > > >> without losing concurrency. But it didn't get done for 7.2. > > > > > Yes, there must be. Informix handles this case perfectly. > > > (It uses a background btree cleaner) > > As an idle thought, I wonder what other maintenance tasks we could have > a process in the background automatically doing when system activity is > low ? > > Maintenance > *********** > - Index compaction > - Vacuum of various flavours I had a couple thoughts about index compaction and vacuum in the background: Could one run a postgresql process in a lower priority process and perform lazy vacuums without affecting performance all that much? A live index compaction can be done by indexing the table with a temporary name rename the old index, rename the new index to the old name, and drop the old index.