Received: from web14908.mail.yahoo.com (web14908.mail.yahoo.com [216.136.225.60]) by postgresql.org (8.11.3/8.11.4) with SMTP id g1JFH3E72863 for ; Tue, 19 Feb 2002 10:17:03 -0500 (EST) (envelope-from kancha2np@yahoo.com) Message-ID: <20020219151704.13896.qmail@web14908.mail.yahoo.com> Received: from [202.161.138.25] by web14908.mail.yahoo.com via HTTP; Tue, 19 Feb 2002 07:17:04 PST Date: Tue, 19 Feb 2002 07:17:04 -0800 (PST) From: "Kancha ." Subject: inheritance and foreign key To: pgsql-general@postgresql.org Cc: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200202/739 X-Sequence-Number: 20757 I'm a postgresql newbie. It seems that primary key is not inherited by tables. My situtation is as follows I've a parent table and child tables with inherit from parent table. Parent table consists of pid (defualt value of pid is from sequence) that is primary key. Now all child tables inherits this attribute pid. I've another table from where i reference this pid as: pid integer references parent (pid) the table creation is successful, but when i try to insert data into this table that refereces parent table i get error - something like the referenced column doesn't exist. I'm using version 7.1 in RH Linux 7.2 box. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com