Re: [GENERAL] 9.5 regression with unwanted nested loop left join

2016-05-24 Thread Greg Sabino Mullane
On Tue, May 24, 2016 at 11:19:04AM -0400, Tom Lane wrote: > 8.4 avoids this trap only because it doesn't consider injecting a > materialize there. > > So a brute-force fix to restore the pre-9.0 behavior would be > "set enable_material = off". But really the problem is that it's > unobvious that

Re: [GENERAL] 9.5 regression with unwanted nested loop left join

2016-05-24 Thread Tom Lane
Greg Sabino Mullane writes: > We are trying to upgrade a client app to Postgres 9.5, but are running > into some performance regression issues (even though the curent db is 8.x!). > One in particular that is puzzling me involves a query that keeps slipping > into a nested loop left join, rather

[GENERAL] 9.5 regression with unwanted nested loop left join

2016-05-24 Thread Greg Sabino Mullane
We are trying to upgrade a client app to Postgres 9.5, but are running into some performance regression issues (even though the curent db is 8.x!). One in particular that is puzzling me involves a query that keeps slipping into a nested loop left join, rather than a much preferred hash join. Th