From: | Greg Smith <gsmith(at)gregsmith(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Historical Data Question |
Date: | 2007-06-15 04:29:15 |
Message-ID: | Pine.GSO.4.64.0706150023000.29535@westnet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, 14 Jun 2007, Lza wrote:
> When I run a query on the policy table for a certain period, I also need
> to be able to pull the correct related rows (i.e. the information that
> would have been in the table at that time) from the tables linked to it.
Check out "Developing Time-Oriented Database Applications in SQL" by
Richard Snodgras; it's an entire book devoted to this and related topics.
It's out of print and hard to get, but you can download a free PDF copy
from the author at http://www.cs.arizona.edu/people/rts/publications.html
Much of the text shows how to simulate types and operations that now are
built-in to PostgreSQL, like the interval type, so it's not quite as
intimidating a read as it seems at first; there's a lot of code for older
databases that you can completely ignore.
--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2007-06-15 05:03:36 | Re: Historical Data Question |
Previous Message | Tom Lane | 2007-06-15 03:15:33 | Re: pg_restore out of memory |