Re: [GENERAL] Marking indexes out of date (WAS: loading data, creating indexes, clustering, vacuum) feature request?

2006-12-08 Thread Tom Lane
Martijn van Oosterhout writes: > One issue would be that even disabled indexes would need to be updated > when there are new rows. If you don't update the index when it's > disabled, then re-enabling will essentially need to rebuild the index. I assume that's what he wants. However, it's not imm

Re: [GENERAL] Marking indexes out of date (WAS: loading data, creating

2006-12-08 Thread Glen Parker
Martijn van Oosterhout wrote: On Fri, Dec 08, 2006 at 12:49:30PM -0800, Glen Parker wrote: I'd like to see a general way to take indexes off line without actually losing their definitions. For example, something like "ALTER TABLE [EN | DIS] ABLE INDEXES", "ALTER INDEX [EN | DIS] ABLE", etc. T

Re: [GENERAL] Marking indexes out of date (WAS: loading data, creating indexes, clustering, vacuum) feature request?

2006-12-08 Thread Martijn van Oosterhout
On Fri, Dec 08, 2006 at 12:49:30PM -0800, Glen Parker wrote: > I'd like to see a general way to take indexes off line without actually > losing their definitions. For example, something like "ALTER TABLE [EN > | DIS] ABLE INDEXES", "ALTER INDEX [EN | DIS] ABLE", etc. This could > also be used

[GENERAL] Marking indexes out of date (WAS: loading data, creating indexes, clustering, vacuum) feature request?

2006-12-08 Thread Glen Parker
Angva wrote: Looking for a small bit of advice... I have a script that updates several tables with large amounts of data. Before running the updates, it drops all indexes for optimal performance. When the updates have finished, I run the following procedure: recreate the indexes cluster the tab