From: Andreas <maps.on@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Help Need some hindsight
Date: Tue, 03 Aug 2010 04:58:31 +0200
Message-ID: <4C5785D7.8040907@gmx.net> (raw)
Hi,
I need to display log events (again).
The log is simply like this
log ( log_id serial primary key, create_ts timestamp default
localtimestamp, object_id, state_id, ....... )
It records the state of objects and when and what happend to to change
this state.
I'd like to get a list that shows the current state at any point of time
and the state of the last event before regarding the current object_id.
The tricky bit is that both states should appear in the same row for
every row.
Help?
:)
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: maps.on@gmx.net
Subject: Re: Help Need some hindsight
In-Reply-To: <4C5785D7.8040907@gmx.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