Re: [PERFORM] same query different execution plan (hash join vs. semi-hash join)

2014-05-22 Thread Huang, Suya
pgsql-performance@postgresql.org Subject: Re: [PERFORM] same query different execution plan (hash join vs. semi-hash join) "Huang, Suya" writes: > Thank you Tom. But the time spent on scanning table test1 is less than 1 > second (91.738 compares to 87.869), so I guess this shouldn

Re: [PERFORM] same query different execution plan (hash join vs. semi-hash join)

2014-05-19 Thread Tom Lane
"Huang, Suya" writes: > Thank you Tom. But the time spent on scanning table test1 is less than 1 > second (91.738 compares to 87.869), so I guess this shouldn't be the issue? No, the point is that the bad rowcount estimate (and, possibly, lack of stats about join column contents) causes the plan

Re: [PERFORM] same query different execution plan (hash join vs. semi-hash join)

2014-05-18 Thread Huang, Suya
mance@postgresql.org Subject: Re: [PERFORM] same query different execution plan (hash join vs. semi-hash join) "Huang, Suya" writes: > I've got a query as below, it runs several times with different execution > plan and totally different execution time. The one using hash-j

Re: [PERFORM] same query different execution plan (hash join vs. semi-hash join)

2014-05-15 Thread Tom Lane
"Huang, Suya" writes: > I've got a query as below, it runs several times with different execution > plan and totally different execution time. The one using hash-join is slow > and the one using semi-hash join is very fast. However, I have no control > over the optimizer behavior of PostgreSQL