pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kancha . <kancha2np@yahoo.com>
To: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: inheritance and foreign key
Date: Tue, 19 Feb 2002 07:17:04 -0800 (PST)
Message-ID: <20020219151704.13896.qmail@web14908.mail.yahoo.com> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <20020219151704.13896.qmail@web14908.mail.yahoo.com>
Permalink:  ../20020219151704.13896.qmail@web14908.mail.yahoo.com/
Also on:    postgresql.org/message-id/20020219151704.13896.qmail@web14908.mail.yahoo.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: kancha2np@yahoo.com, pgsql-general@postgresql.org
  Subject: Re: inheritance and foreign key
  In-Reply-To: <20020219151704.13896.qmail@web14908.mail.yahoo.com>

* 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