Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)
Date: 2003-09-30 02:02:55
Message-ID: 3F78E44F.4020206@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


> Correct me if I am wrong but I remember postgresql throwing error that foreign
> key field was not unique in foreign table. Obviously it can not detect that
> without an index. Either primary key or unique constraint would need an
> index.
>
> What am I missing here?
>
>
> IOW, how do I exactly create foreign keys without an index?

You are taling about the primary key or the referenced key, not the
foreign key. (eg. the source column)

Chris

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew T. O'Connor 2003-09-30 02:41:09 PGAdmin III 1.0.0 Released
Previous Message Phil Campaigne 2003-09-30 01:56:32 psql error:cannot open libpq.so.3

Browse pgsql-hackers by date

  From Date Subject
Next Message Steve Yalovitser 2003-09-30 04:10:57 Question regarding coopting Database Engine
Previous Message Jan Wieck 2003-09-30 00:55:05 Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)