Re: [SQL] using constraint based paritioning to fix EAV

From: Hannu Krosing <hannu(at)skype(dot)net>
To: Andrew Hammond <andrew(dot)george(dot)hammond(at)gmail(dot)com>
Cc: Aaron Bono <postgresql(at)aranya(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [SQL] using constraint based paritioning to fix EAV
Date: 2006-07-18 22:06:52
Message-ID: 1153260413.3681.6.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

Ühel kenal päeval, K, 2006-07-19 kell 00:20, kirjutas Hannu Krosing:
> Ühel kenal päeval, T, 2006-07-18 kell 16:44, kirjutas Andrew Hammond:
> > On 7/18/06, Aaron Bono <postgresql(at)aranya(dot)com> wrote:
> > On 18 Jul 2006 09:07:08 -0700, Andrew Hammond
> > <andrew(dot)george(dot)hammond(at)gmail(dot)com> wrote:
> >
> > I have a client with the following EAV inspired
> > schema.
> >
> > CREATE TABLE many_tables (
> > table_id text primary key, -- defines which
> > virtual table is
> > encoded
> > attribute1 text,
> > attribute2 text,
> > attribute3 text,
> > attribute4 text,
> > ...
> > );
>
> Maybe you can approach the problem from another end, and make the
> many_tables table the virtual one and all the others into real tables ?

Oops, I see you kind of are :)

Maybe you can solve some of the problems doing a VIEW over pl/SQL
function ?

And/or maybe using triggers instead of rules.

--
----------------
Hannu Krosing
Database Architect
Skype Technologies OÜ
Akadeemia tee 21 F, Tallinn, 12618, Estonia

Skype me: callto:hkrosing
Get Skype for free: http://www.skype.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-07-18 22:07:01 Re: [COMMITTERS] pgsql: Done: o -Display IN, INOUT, and OUT
Previous Message Phil Frost 2006-07-18 22:06:06 feature request: pg_dump --view

Browse pgsql-sql by date

  From Date Subject
Next Message vamsee movva 2006-07-19 04:21:07 is there any dataware housing tools for postgresql
Previous Message Andrew Hammond 2006-07-18 22:00:29 Re: using constraint based paritioning to fix EAV