Re: [ADMIN] optimizer behavior in the case of highly updated tables

2010-06-08 Thread Scott Marlowe
On Wed, Jun 9, 2010 at 12:04 AM, Greg Smith wrote: > Mark Rostron wrote: >> >> - It was necessary to take a site outage and perform a “vacuum full >> analyze” on the table >> >> - Following this, the query plan reverted to the more efficient btree >> lookup >> >> Clearly, the garbage buildup resul

Re: [ADMIN] optimizer behavior in the case of highly updated tables

2010-06-08 Thread Greg Smith
Mark Rostron wrote: - It was necessary to take a site outage and perform a “vacuum full analyze” on the table - Following this, the query plan reverted to the more efficient btree lookup Clearly, the garbage buildup resulting from transaction activity on the table is the villain here. -

Re: [ADMIN] optimizer behavior in the case of highly updated tables

2010-06-08 Thread Scott Marlowe
On Tue, Jun 8, 2010 at 8:58 PM, Mark Rostron wrote: > I am looking for some specific information regarding optimizer behavior. > > We recently experienced a situation where a query that was previously using > a btree lookup (efficient) SWITCHED to using seqscan/hash lookup. OK, before we go any f

[ADMIN] optimizer behavior in the case of highly updated tables

2010-06-08 Thread Mark Rostron
I am looking for some specific information regarding optimizer behavior. We recently experienced a situation where a query that was previously using a btree lookup (efficient) SWITCHED to using seqscan/hash lookup. My questions would be: - Under what circumstances is the optimizer like