Re: [GENERAL] when to reindex?

2008-06-08 Thread Gurjeet Singh
On Sat, Jun 7, 2008 at 8:07 PM, Jeremy Harris <[EMAIL PROTECTED]> wrote: > Gregory Stark wrote: > >> REINDEX scans the table >> precisely once and sorts it. >> > > For the bloat, as opposed to corruption, case - > what information is needed from the table that > is not in the old index? Why woul

Re: [GENERAL] when to reindex?

2008-06-07 Thread Jeremy Harris
Gregory Stark wrote: REINDEX scans the table precisely once and sorts it. For the bloat, as opposed to corruption, case - what information is needed from the table that is not in the old index? Why would a sequential read of the old index alone (then some processing) not suffice? Thanks, J

Re: [GENERAL] when to reindex?

2008-06-06 Thread Gregory Stark
"Kevin Hunter" <[EMAIL PROTECTED]> writes: > Or, assuming the REINDEX is for speed/bloat, not for corruption, perhaps > an option to use the old index as a basis, rather than scanning the > entire table multiple times as with a CREATE INDEX CONCURRENTLY. That's been mentioned, it ought to be on t

Re: [GENERAL] when to reindex?

2008-06-06 Thread Craig Ringer
Roberts, Jon wrote: Based on this, I have the fillfactor set lower than the default 90 but this will fill up and it will run slower over time. I want to automate the reindex process but only reindex when needed. I have a pretty large database so I can't reindex everything regardless if it need

Re: [GENERAL] when to reindex?

2008-06-06 Thread Kevin Hunter
At 2:02p -0400 on Fri, 06 Jun 2008, Jon Roberts wrote: > Based on this, I have the fillfactor set lower than the default 90 but > this will fill up and it will run slower over time. I want to automate > the reindex process but only reindex when needed. I have a pretty large > database so I can't

Re: [GENERAL] when to reindex?

2008-06-06 Thread Roberts, Jon
> On Fri, Jun 6, 2008 at 9:36 AM, Roberts, Jon <[EMAIL PROTECTED]> > wrote: > > In Oracle, there is a method to determine when it is advisable to > > rebuild indexes. Are there any guidelines for this in PostgreSQL? > > > > I found this but it doesn't indicate at which point an index should be > >

Re: [GENERAL] when to reindex?

2008-06-06 Thread Scott Marlowe
On Fri, Jun 6, 2008 at 9:36 AM, Roberts, Jon <[EMAIL PROTECTED]> wrote: > In Oracle, there is a method to determine when it is advisable to > rebuild indexes. Are there any guidelines for this in PostgreSQL? > > I found this but it doesn't indicate at which point an index should be > rebuilt other

[GENERAL] when to reindex?

2008-06-06 Thread Roberts, Jon
In Oracle, there is a method to determine when it is advisable to rebuild indexes. Are there any guidelines for this in PostgreSQL? I found this but it doesn't indicate at which point an index should be rebuilt other than corruption. http://www.postgresql.org/docs/8.3/interactive/routine-reindex