Help Need some hindsight

Поиск
Список
Период
Сортировка
От Andreas
Тема Help Need some hindsight
Дата
Msg-id 4C5785D7.8040907@gmx.net
обсуждение исходный текст
Ответы Re: Help Need some hindsight  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список 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 по дате отправления:

Предыдущее
От: John Hasler
Дата:
Сообщение: What does PostgreSQL do when time goes backward?
Следующее
От: "Marc Mamin"
Дата:
Сообщение: workaround for missing ROWNUM feature with the help of GUC variables