Re: [PERFORM] Join problem

2004-04-28 Thread Tom Lane
Silke Trissl <[EMAIL PROTECTED]> writes: > I found out, that the change of the operator from '~*' to '=' for the > item.description brought a great boost in performance (425 secs to 1 > sec!), but not in cost (Query plans at the end). The main problem seems to be bad estimation of the number of

Re: [PERFORM] Join problem

2004-04-28 Thread Suller AndrĂ¡s
these two queries are not equal. Query1 returns 6 rows, query2 returns 0 rows, because '~*' and '=' operators are not same. BTW when you use '=', it could use index on "item.description". On query1, "Seq Scan on item" estimates 1 row, on query2 it estimates 733 rows. IMHO that's why query1 uses