Re: [PERFORM] views much slower in 9.3 than 8.4

2015-04-07 Thread Jim Nasby
On 3/30/15 10:52 AM, Tom Lane wrote: Kevin Grittner writes: >Tom Lane wrote: >>But the other problem is that the planner considers less-than-1% >>differences in cost estimates to be "in the noise", which means >>that it's not going to consider cost differences of less than >>1480 units in the

Re: [PERFORM] views much slower in 9.3 than 8.4

2015-03-30 Thread Tom Lane
Kevin Grittner writes: > Tom Lane wrote: >> But the other problem is that the planner considers less-than-1% >> differences in cost estimates to be "in the noise", which means >> that it's not going to consider cost differences of less than >> 1480 units in the remaining join steps to be signific

Re: [PERFORM] views much slower in 9.3 than 8.4

2015-03-30 Thread Kevin Grittner
Tom Lane wrote: > But the other problem is that the planner considers less-than-1% > differences in cost estimates to be "in the noise", which means > that it's not going to consider cost differences of less than > 1480 units in the remaining join steps to be significant. This > is how come we e

Re: [PERFORM] views much slower in 9.3 than 8.4

2015-03-28 Thread Tom Lane
I wrote: > "Carson, Leonard" writes: >> Here are the 3 views and some timing notes: >> http://pgsql.privatepaste.com/decae31693# > That doesn't really leave us any wiser than before, unfortunately. > It's clear that the root of the problem is the drastic underestimation of > the size of the rq/a

Re: [PERFORM] views much slower in 9.3 than 8.4

2015-03-19 Thread Tom Lane
"Carson, Leonard" writes: > Here are the 3 views and some timing notes: > http://pgsql.privatepaste.com/decae31693# That doesn't really leave us any wiser than before, unfortunately. It's clear that the root of the problem is the drastic underestimation of the size of the rq/a join, but it's not

Re: [PERFORM] views much slower in 9.3 than 8.4

2015-03-19 Thread Carson, Leonard
Here are the 3 views and some timing notes: http://pgsql.privatepaste.com/decae31693# thanks, lcarson On Mar 18, 2015, at 3:41 PM, Tom Lane mailto:t...@sss.pgh.pa.us>> wrote: "Carson, Leonard" mailto:lcar...@sdsc.edu>> writes: There is only one server at this point. The 8.4 machine was upgraded

Re: [PERFORM] views much slower in 9.3 than 8.4

2015-03-18 Thread Kevin Grittner
"Carson, Leonard" wrote: > While acknowledging that nested loops and sequential table scans > account for 85% of the execution time which suggests that a > better query may be needed, why would the same query run in > seconds on 8.x but take minutes on 9.x? First, please show the output of this