Re: [PERFORM] Re: Planner chooses slow index heap scan despite accurate row estimates

2016-05-30 Thread Jeff Janes
On Sat, May 28, 2016 at 5:38 PM, Jake Magner wrote: > Tom Lane-2 wrote >> Jake Magner < > >> jakemagner90@ > >> > writes: >>> I tried without doing an INSERT at all, just running the SELECT queries >>> and >>> the result is the same. Nested loop is chosen but is much slower. >> >> FWIW, I just not

[PERFORM] Re: Planner chooses slow index heap scan despite accurate row estimates

2016-05-28 Thread Jake Magner
Tom Lane-2 wrote > Jake Magner < > jakemagner90@ > > writes: >> I tried without doing an INSERT at all, just running the SELECT queries >> and >> the result is the same. Nested loop is chosen but is much slower. > > FWIW, I just noticed that the comparisons you're using are plain equality > of t

Re: [PERFORM] Re: Planner chooses slow index heap scan despite accurate row estimates

2016-05-27 Thread Tom Lane
Jake Magner writes: > I tried without doing an INSERT at all, just running the SELECT queries and > the result is the same. Nested loop is chosen but is much slower. FWIW, I just noticed that the comparisons you're using are plain equality of the arrays. While a GIN array index supports that, it

[PERFORM] Re: Planner chooses slow index heap scan despite accurate row estimates

2016-05-27 Thread Jake Magner
I tried without doing an INSERT at all, just running the SELECT queries and the result is the same. Nested loop is chosen but is much slower. -- View this message in context: http://postgresql.nabble.com/Planner-chooses-slow-index-heap-scan-despite-accurate-row-estimates-tp5905357p5905383.html