From: | "Tjibbe Rijpma" <t(dot)b(dot)rijpma(at)student(dot)tudelft(dot)nl> |
---|---|
To: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Inheritance |
Date: | 2004-12-21 08:27:05 |
Message-ID: | 005901c4e736$db6e5db0$1a0313ac@TJIBBE |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
When will the function inheritence be futher development? That Primary keys
work wil on both parent and child table.
Now a use one table and several table with the same foreign keys to that
table. And a function have to do two insert of update actions.
----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hasnul Fadhly bin Hasan" <hasnulfadhly(dot)h(at)mimos(dot)my>
Cc: <pgsql-novice(at)postgresql(dot)org>
Sent: Tuesday, December 21, 2004 4:45
Subject: Re: [NOVICE] Inheritance
> Hasnul Fadhly bin Hasan <hasnulfadhly(dot)h(at)mimos(dot)my> writes:
> > I'm just wondering, what real benefit does inheritance have? When i
> > create two tables, one inherited from the other,
> > does that mean i have two tables with same duplicate data or actually
> > they are joined in the back end?
>
> It's more like an implicit UNION ALL. There's no duplication, but when
> you specify a SELECT/UPDATE/DELETE over the parent table, the child
> table is implicitly processed as well.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Lloyd Dieter | 2004-12-21 12:28:25 | How to get day of week? |
Previous Message | Marcin Gil | 2004-12-21 07:36:47 | Re: pg_dumpall with oids/blobs |