Re: [BUGS] BUG #7853: Incorrect statistics in table with many dead rows.

2013-02-23 Thread James R Skaggs
Okay, I have some more info. Some background info. This one table gets so many changes, I CLUSTER it each night. However, after I do this. The statistics still appear to be incorrect. Even after I do a "select pg_stat_reset();" Followed by 3 ANALYZE at default_statistics_target as 1, 10, and 10

Re: [BUGS] BUG #7853: Incorrect statistics in table with many dead rows.

2013-02-06 Thread James R Skaggs
General: +1 612 367 6224 On Tue, Feb 5, 2013 at 4:12 PM, Kevin Grittner wrote: > James R Skaggs wrote: > > > Agreed, we shouldn't have so many dead rows. Our autovacuum is > > set on but has default parameters. We are clustering today. > > This, of course, means

Re: [BUGS] BUG #7853: Incorrect statistics in table with many dead rows.

2013-02-05 Thread James R Skaggs
Kevin - Agreed, we shouldn't have so many dead rows. Our autovacuum is set on but has default parameters. We are clustering today. This, of course, means downtime and inconvenience to the users. Here is the troublesome query: select sum(case when t1.cdlc < 0 then 0 else t1.cdlc end) as