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

From Victor Yegorov
Subject Re: constraint with reference to the same table
Date
Msg-id 20030515022135.GF1549@nordlb.lv
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  (Rudi Starcevic <rudi@oasis.net.au>)
List pgsql-performance
* 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

pgsql-performance by date:

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