Re: constraint with reference to the same table - Mailing list pgsql-performance

From Rudi Starcevic
Subject Re: constraint with reference to the same table
Date
Msg-id 3EC2F81B.10001@oasis.net.au
Whole thread Raw
In response to Re: constraint with reference to the same table  (Rudi Starcevic <rudi@oasis.net.au>)
Responses Re: constraint with reference to the same table  (Victor Yegorov <viy@nordlb.lv>)
List pgsql-performance
Perhaps I also need a 3rd Index ?

One for Business's
One for People and
One for Business_People.

I think I may need the 3rd Index for query's like

Select b_id
 From business_people
where b_id = 1 and pn_id = 2;

I think this way I have an Index for 3 type's of queries.

When I looking for data on just the business,
when I'm looking for data on just people and
when I'm looking for data on business people relationships.

Cheers
Rudi.


pgsql-performance by date:

Previous
From: Rudi Starcevic
Date:
Subject: Re: constraint with reference to the same table
Next
From: Victor Yegorov
Date:
Subject: Re: constraint with reference to the same table