[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] use of PG inheritance in GNUmed
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] use of PG inheritance in GNUmed |
Date: |
Sat, 13 Mar 2004 18:53:21 +0100 |
User-agent: |
Mutt/1.3.22.1i |
> > A quick question: in general terms, how is PostgreSQL inheritance used
> > in GNUmed? I've been looking carefully at this feature of PG, and am a
> > bit confused by it, because column (definitions) are inherited by the
> > child tables from the parent tables, but rows are inherited by the
> > parents from the child table. In other words, the inheritance of columns
> > and rows operate in opposite directions, which doesn't seem very useful
> > to me - or at least it isn't for my purposes (unrelated to GNUmed). Does
> > this characteristic of the inheritance cause problems for GNUmed, or is
> > it an advantage.
>
> Inheritance should not be used. Sticking to the relation model as much as
> possible will save us from problems and portability issues.
Feel free to re-implement, I suppose.
If we want portability we'd need to refrain from stored
procedures and triggers, too. Views are barely portable, too.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346