Help Need some hindsight - Mailing list pgsql-sql

From Andreas
Subject Help Need some hindsight
Date
Msg-id 4C5785D7.8040907@gmx.net
Whole thread Raw
Responses Re: Help Need some hindsight
List pgsql-sql
  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?
:)



pgsql-sql by date:

Previous
From: John Hasler
Date:
Subject: What does PostgreSQL do when time goes backward?
Next
From: "Marc Mamin"
Date:
Subject: workaround for missing ROWNUM feature with the help of GUC variables