Re: Incomprehensible behaviour of a foreign key.

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Incomprehensible behaviour of a foreign key.
Date: 2003-07-20 14:56:23
Message-ID: 20030720165623.D610@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just an uninformed wild guess but you seem to be in
desperate search for straws:

> create table site_membership (
> id serial unique
> ,group_id int references groups(id)
> ,site_id int references someothertable(id)
> ,primary key(site_id,group_id)
> ) without oids;

Does using id as primary key and removing the multi-key
primary key constraint on (site_id, group_id) help any ?

Unlikely but you never know...

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-07-20 15:23:18 Re: Incomprehensible behaviour of a foreign key.
Previous Message Tom Lane 2003-07-20 14:31:08 Re: Incomprehensible behaviour of a foreign key.