Re: Many-To-Many Bridge Table Index - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Many-To-Many Bridge Table Index
Date
Msg-id 200509300854.47986.peter_e@gmx.net
Whole thread Raw
In response to Many-To-Many Bridge Table Index  (Sergei Dubov <sdubov@gmail.com>)
List pgsql-general
Am Donnerstag, 29. September 2005 21:44 schrieb Sergei Dubov:
> select * from table_a where table_b_id=1,
>
> will the query use an index? Will this be true when I do join on this
> table?

It could use the index, but whether it will depends on the particular data
distribution.  The EXPLAIN command is your friend.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: security documentation
Next
From: Peter Eisentraut
Date:
Subject: Re: postmaster does not shut down