Question re: relational technique

From: Robert Paulsen <robert(at)paulsenonline(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Question re: relational technique
Date: 2006-03-12 17:11:17
Message-ID: 200603121111.17147.robert@paulsenonline.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Here is a sample table:

item
item_id int
name char
attrib1 char
attrib2 char
attrib3 char

One problem with the above is that the list of attributes is fixed. I am
looking for a way to assign new, previously undefined, attributes to items
without changing the table structure. Is it ever appropriate to do the
following?

item
item_id int
name char

details
item_id int
attribute_name char
attribute_value char

If this is a reasonable technique are their guidelines for its use? When is it
approptiate? When not?

Thanks,
Bob

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message chester c young 2006-03-12 17:29:03 Re: Question re: relational technique
Previous Message Weimao Ke 2006-03-12 17:07:53 Re: pgsql aggregate: conditional max