Re: generic modelling of data models; enforcing constraints dynamically... - Mailing list pgsql-general

From Sam Mason
Subject Re: generic modelling of data models; enforcing constraints dynamically...
Date
Msg-id 20090924165236.GE22438@samason.me.uk
Whole thread Raw
In response to generic modelling of data models; enforcing constraints dynamically...  (InterRob <rob.marjot@gmail.com>)
List pgsql-general
On Thu, Sep 24, 2009 at 06:28:28PM +0200, InterRob wrote:
> I am trying to implement the following:
>
> In a database I wish to implement a GENERIC datamodel, thus on a meta-level.

Sounds like you're describing an EAV design:

  http://en.wikipedia.org/wiki/Entity-attribute-value_model

Designs like this tend to result in you getting very little support
from the database and get awkward as they grow.  If your problem really
is suited to this then go for it, but surprisingly few actually are.
I'd highly recommend using a more traditional design until you've been
through at least one big revision and then you'll know whether EAV
really fits.

--
  Sam  http://samason.me.uk/

pgsql-general by date:

Previous
From: Ben Chobot
Date:
Subject: Re: generic modelling of data models; enforcing constraints dynamically...
Next
From: Richard Huxton
Date:
Subject: Re: How to have ant's task insert special chars appropriately?