pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oleg Bartunov <oleg@sai.msu.su>
To: Reg Me Please <regmeplease@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: EAV or not to EAV?
Date: Thu, 22 Nov 2007 13:57:34 +0300 (MSK)
Message-ID: <Pine.LNX.4.64.0711221356470.17908@sn.sai.msu.ru> (raw)
In-Reply-To: <200711220948.36142.regmeplease@gmail.com>
References: <200711220948.36142.regmeplease@gmail.com>

On Thu, 22 Nov 2007, Reg Me Please wrote:

> Hi all.
>
> I have to take into account the update history of every single
> field into a number of tables.
> Those updates can come to the future (next values) but also to the
> past (history fix) and apply only to some fields, usually not to the
> entire record.
> Every lookup in those tables is always related to a timestamp that
> normally is the current timestamp, but can also be a past timestamp.
>
> I've come up with a "traditionally regretted" EAV design with the add of
> timestamps for the history. And the related problems, some of which have
> been solved by Joe Conways's crosstab contrib.
>
> Is there a better idea than mine? I hope so.

We use contrib/hstore for this


 	Regards,
 		Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83



view thread (3+ messages)  latest in thread

Message-ID: <Pine.LNX.4.64.0711221356470.17908@sn.sai.msu.ru>
Permalink:  ../Pine.LNX.4.64.0711221356470.17908@sn.sai.msu.ru/
Also on:    postgresql.org/message-id/Pine.LNX.4.64.0711221356470.17908@sn.sai.msu.ru

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: oleg@sai.msu.su, regmeplease@gmail.com, pgsql-general@postgresql.org
  Subject: Re: EAV or not to EAV?
  In-Reply-To: <Pine.LNX.4.64.0711221356470.17908@sn.sai.msu.ru>
  References: <200711220948.36142.regmeplease@gmail.com> <Pine.LNX.4.64.0711221356470.17908@sn.sai.msu.ru>

* 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