Re: [ADMIN] index bloat on partial index 8.4

2011-10-04 Thread Scott Marlowe
On Tue, Oct 4, 2011 at 12:28 PM, Kevin Ricords wrote: > Thank you for your response.  I believe I misunderstood "reclaimed for > re-use".  Using contrib/pg_freespace, I see empty index pages can be reused > elsewhere in the same index, but are not deallocated.  To keep my index at > the size I exp

Re: [ADMIN] index bloat on partial index 8.4

2011-10-04 Thread Kevin Ricords
Thank you for your response. I believe I misunderstood "reclaimed for re-use". Using contrib/pg_freespace, I see empty index pages can be reused elsewhere in the same index, but are not deallocated. To keep my index at the size I expected, I will have to vacuum more frequently or reindex/reb

[ADMIN] index bloat on partial index 8.4

2011-10-04 Thread Kevin Ricords
Per documentation (http://www.postgresql.org/docs/8.4/static/routine-reindex.html): In PostgreSQL 7.4 and later, index pages that have become completely empty are reclaimed for re-use. There is still a possibility for inefficient use of space: if all but a few index keys on a page have been del

Re: [ADMIN] index bloat on partial index 8.4

2011-10-03 Thread Tom Lane
Kevin Ricords writes: > My implementation is a 150 million row table with a partial index on > newly created rows, where every row will be updated to not match the > index condition every few minutes. > The index size appears to grow proportional to the number of rows added > to the table, but

[ADMIN] index bloat on partial index 8.4

2011-10-03 Thread Kevin Ricords
Per documentation (http://www.postgresql.org/docs/8.4/static/routine-reindex.html): In PostgreSQL 7.4 and later, index pages that have become completely empty are reclaimed for re-use. There is still a possibility for inefficient use of space: if all but a few index keys on a page have been del