Re: [GENERAL] inheritance and table

2006-06-27 Thread nik600
ok i have understand many thanks to all! On 6/27/06, Erik Jones <[EMAIL PROTECTED]> wrote: nik600 wrote: > 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 rep

Re: [GENERAL] inheritance and table

2006-06-26 Thread arie nugraha
Inheritance in postgre means you will have same fields definition like the inherited table plus its own fields. So if table B is inherit table A, table B will have same field definition like A plus table B own unique field(s). It wont share primary keys, table B just have primary key in th

Re: [GENERAL] inheritance and table

2006-06-26 Thread Erik Jones
nik600 wrote: 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 tab

Re: [GENERAL] inheritance and table

2006-06-26 Thread Richard Broersma Jr
> i don't have understand how works inheritance of tables... > if table B inherits from table A > - A and B must share primary keys? No, currently there is no unique constraint that will force uniqueness across parent/child/sibling tables. Just think of them as being nothing more than seperate

[GENERAL] inheritance and table

2006-06-26 Thread nik600
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