index usage in joins q'n - Mailing list pgsql-general

From rihad
Subject index usage in joins q'n
Date
Msg-id 472C266F.1060304@mail.ru
Whole thread Raw
Responses Re: index usage in joins q'n
List pgsql-general
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] 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?

Thanks.

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Would an index benefit select ... order by?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: index usage in joins q'n