PRIMARY KEY not found?

From: "Vernon Smith" <vwu98034(at)lycos(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PRIMARY KEY not found?
Date: 2003-08-03 00:06:11
Message-ID: BACJOIKLEPNDNEAA@mailcity.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Here is the problem:

Table A ( id int, ...)
Table B ( ... ) inherits (A)

CREATE TABLE C ( id int REFERENCES B ON DELETE CASCADE, ...);

ERROR: PRIMARY KEY for referenced table "B" not found

It is fine when the reference is table A.

Why?

____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-08-03 01:31:17 Re: PRIMARY KEY not found?
Previous Message Vernon Smith 2003-08-02 23:55:22 Re: Inheritance & multiple-value fields