pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Paulsen <robert@paulsenonline.net>
To: pgsql-sql@postgresql.org
Subject: Question re: relational technique
Date: Sun, 12 Mar 2006 11:11:17 -0600
Message-ID: <200603121111.17147.robert@paulsenonline.net> (raw)

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



view thread (5+ messages)  latest in thread

Message-ID: <200603121111.17147.robert@paulsenonline.net>
Permalink:  ../200603121111.17147.robert@paulsenonline.net/
Also on:    postgresql.org/message-id/200603121111.17147.robert@paulsenonline.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: robert@paulsenonline.net
  Subject: Re: Question re: relational technique
  In-Reply-To: <200603121111.17147.robert@paulsenonline.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox