From: Rudi Starcevic <rudi@oasis.net.au>
To: Rudi Starcevic <rudi@oasis.net.au>
Cc: Victor Yegorov <viy@nordlb.lv>
Cc: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Postgres Performance <pgsql-performance@postgresql.org>
Subject: Re: constraint with reference to the same table
Date: Thu, 15 May 2003 12:14:51 +1000
Message-ID: <3EC2F81B.10001@oasis.net.au> (raw)
In-Reply-To: <3EC2F65F.2050004@oasis.net.au>
References: <20030514181136.S52444-100000@megazone23.bigpanda.com>
<3EC2F1E4.8080706@oasis.net.au>
<20030515015811.GE1549@nordlb.lv>
<3EC2F65F.2050004@oasis.net.au>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: rudi@oasis.net.au, viy@nordlb.lv, sszabo@megazone23.bigpanda.com
Subject: Re: constraint with reference to the same table
In-Reply-To: <3EC2F81B.10001@oasis.net.au>
References: <20030514181136.S52444-100000@megazone23.bigpanda.com> <3EC2F1E4.8080706@oasis.net.au> <20030515015811.GE1549@nordlb.lv> <3EC2F65F.2050004@oasis.net.au> <3EC2F81B.10001@oasis.net.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox