Re: Alternative to drop index, load data, recreate index? - Mailing list pgsql-general

From Tom Lane
Subject Re: Alternative to drop index, load data, recreate index?
Date
Msg-id 8783.1189475130@sss.pgh.pa.us
Whole thread Raw
In response to Re: Alternative to drop index, load data, recreate index?  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-general
Jeff Davis <pgsql@j-davis.com> writes:
> On Mon, 2007-09-10 at 17:06 -0700, Jason L. Buberel wrote:
>> However, I now have tables so large that even the 'recreate all
>> indices' step is taking too long (15-20 minutes on 8.2.4).

> If you create the indexes with CONCURRENTLY, then you can write to the
> tables while the indexes are being created. That might help reduce your
> downtime window.

Also, I trust you've experimented to find the optimal
maintenance_work_mem for this task on your machine?  It's probably
more on 8.2.x than it was before, since we improved the sort code...

            regards, tom lane

pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Debian problem...
Next
From: "Andrej Ricnik-Bay"
Date:
Subject: Re: Ubuntu libraries needed