From: Victor Yegorov <viy@nordlb.lv>
To: Rudi Starcevic <rudi@oasis.net.au>
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 05:21:35 +0300
Message-ID: <20030515022135.GF1549@nordlb.lv> (raw)
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>
* Rudi Starcevic <rudi@oasis.net.au> [15.05.2003 05:15]:
> 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
You don't need it. Primary key on that 2 columns will create a unique index
on them. Of course, if you left things unchanged - you'll need to create
business_people index yourself.
execute:
=> \d business_people
and take a glance on a line, describing primary key.
--
Victor Yegorov
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: viy@nordlb.lv, rudi@oasis.net.au, sszabo@megazone23.bigpanda.com
Subject: Re: constraint with reference to the same table
In-Reply-To: <20030515022135.GF1549@nordlb.lv>
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> <20030515022135.GF1549@nordlb.lv>
* 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