Re: [GENERAL] index usage in joins q'n

2007-11-03 Thread Martijn van Oosterhout
On Sat, Nov 03, 2007 at 11:42:39AM +0400, rihad wrote: > Does this mean that a condition like "WHERE ... [AND] lhs.a=rhs.b [AND] > ..." where rhs.b is already unique-indexed, also requires (non-unique) > index on lhs.a for maximal join speed? Otherwise why would they want to > say that? No, as

[GENERAL] index usage in joins q'n

2007-11-02 Thread rihad
http://www.postgresql.org/docs/8.2/interactive/indexes-intro.html states that "Indexes can moreover be used in join searches. Thus, an index defined on a column that is part of a join condition can significantly speed up queries with joins." Does this mean that a condition like "WHERE ... [AND