pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rudi Starcevic <rudi@oasis.net.au>
Cc: Postgres Performance <pgsql-performance@postgresql.org>
Subject: Re: constraint with reference to the same table
Date: Thu, 15 May 2003 12:29:22 +1000
Message-ID: <3EC2FB82.8070507@oasis.net.au> (raw)
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>

Victor,

>> 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.

Ahh of course ..

"I see said the blind man !" ..

Thanks heaps.
I think now it's pretty clear to me.
I feel I have pretty much optimised my code / sql schema.

Thank you both,
it's a tremendous help - one learns something every day with this list.

Kind regards
Rudi.

Victor Yegorov wrote:

>* 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.
>
>  
>

view thread (18+ messages)

Message-ID: <3EC2FB82.8070507@oasis.net.au>
Permalink:  ../3EC2FB82.8070507@oasis.net.au/
Also on:    postgresql.org/message-id/3EC2FB82.8070507@oasis.net.au

 · 

reply

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
  Subject: Re: constraint with reference to the same table
  In-Reply-To: <3EC2FB82.8070507@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> <20030515022135.GF1549@nordlb.lv> <3EC2FB82.8070507@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