about Inheritance...

From: frederik nietzsche <nietzsche_psql(at)yahoo(dot)it>
To: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: about Inheritance...
Date: 2002-07-18 10:32:33
Message-ID: 20020718103233.73392.qmail@web12907.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all,
I'm still in trouble with inheritance.
Now I've created some triggers and rules for realize
something
similiar to an inheritance... I MUST do myself all the
check
for integrity, it seems the only way.
But because psql executes a function in a transaction
it was
not so bad...
In practice, if you insert some datas in a child
table, YOU must
insert it also in the father table, resulting in
having two identical
data in the father table. if you don't do that, and
you insert
only in the child table, you can see the data in the
father,
but if you SELECT from it, seems it's not there...

I hope it is intelligible.
Any of you have ever dealt with such a thing??
I'd like to hear someother's solutions, if any.

I've also a question,
Is there any sql statement for identify, knowing it's
key value,
where is (in which child table) a record in the father
table??
I have the key of a record in the father, and I want
to know in
which child table is the real information

ok bye and thaks all...
danilo

______________________________________________________________________
Scarica il nuovo Yahoo! Messenger: con webcam, nuove faccine e tante altre novità.
http://it.yahoo.com/mail_it/foot/?http://it.messenger.yahoo.com/

Browse pgsql-sql by date

  From Date Subject
Next Message adrian 2002-07-18 10:34:27 hints or suggestion for optimizer
Previous Message Richard Huxton 2002-07-18 09:59:33 Re: Newbie: Creative use of LIMIT??