inheritance and table

From: nik600 <nik600(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: inheritance and table
Date: 2006-06-26 11:59:43
Message-ID: 9469c3170606260459j733ecd8j5357805e46f9f862@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi

i don't have understand how works inheritance of tables...

if table B inherits from table A

- A and B must share primary keys?

- if i isert record in B the record is replaced in A ?

can i avoid this?

i would like to have this scenario:

table A

table B inheridts from A
table C inheridts from A

if i insert a record in B it must be insered only in B!
if i insert a record in C it must be insered only in C!

is it possible?

thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-06-26 12:49:46 Re: update impossible, constraint prevents it but it shouldn't
Previous Message lrotger 2006-06-26 11:00:19 update impossible, constraint prevents it but it shouldn't