Re: [GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-09 Thread Shoaib Mir
If set have the max_fsm_pages set correctly, that makes VACUUM faster and removes the need for VACUUM FULL or REINDEX. Should be slightly more than the total number of data pages which will be touched by updates and deletes between vacuums. Thanks, Shoaib Mir EnterpriseDB (www.enterprise

Re: [GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-08 Thread Bill Moran
"Angva" <[EMAIL PROTECTED]> wrote: > > > clustering also removes the dead tuples. > > I have a followup question. What if the set of dead tuples is too big > and I need to VACUUM FULL, as opposed to VACUUM. (The update size > varies greatly from day to day.) Will the clustering effectively do a >

Re: [GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-08 Thread Angva
Thank you very much, Alan and Martijn, for the advice! Mark Martijn van Oosterhout wrote: > On Thu, Dec 07, 2006 at 02:52:11PM -0800, Alan Hodgson wrote: > > On Thursday 07 December 2006 08:38, "Angva" <[EMAIL PROTECTED]> wrote: > > > three commands. For instance I have a hunch that creating the

Re: [GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-08 Thread Angva
> clustering also removes the dead tuples. I have a followup question. What if the set of dead tuples is too big and I need to VACUUM FULL, as opposed to VACUUM. (The update size varies greatly from day to day.) Will the clustering effectively do a VACUUM FULL, or just a VACUUM? Thanks again for

Re: [GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-08 Thread Martijn van Oosterhout
On Thu, Dec 07, 2006 at 02:52:11PM -0800, Alan Hodgson wrote: > On Thursday 07 December 2006 08:38, "Angva" <[EMAIL PROTECTED]> wrote: > > three commands. For instance I have a hunch that creating the indexes > > first (as I do now) could slow down the clustering - perhaps the row > > locations in

Re: [GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-07 Thread Alan Hodgson
On Thursday 07 December 2006 08:38, "Angva" <[EMAIL PROTECTED]> wrote: > three commands. For instance I have a hunch that creating the indexes > first (as I do now) could slow down the clustering - perhaps the row > locations in the indexes all have to be updated as the cluster command > shifts the

[GENERAL] loading data, creating indexes, clustering, vacuum...

2006-12-07 Thread Angva
Hi everyone, 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 tabl