11

Can anyone recommend for/against the time-travel functions in postgresql's contrib/spi module? Is there an example available anywhere?

Tnx

starblue
  • 55,348
  • 14
  • 97
  • 151
Yuval
  • 1,382
  • 10
  • 22
  • 3
    I always hear people saying how much better postgresql is than mysql, but now you tell me it has time travel?? amazing!! – davr Oct 03 '08 at 20:22
  • 1
    :-) 'Time travel' is the ability to see the DB as it was in the past - i.e., what values were present in a table at some point earlier on. Have a loot at http://www.postgresql.org/docs/8.3/static/contrib-spi.html. – Yuval Oct 03 '08 at 20:25
  • Greetings from the past! ‎ – ashleedawg Jun 04 '19 at 16:02

2 Answers2

5

The argument for time-travel would be being able to look at tables that are updated often at an earlier insertion/deletion point. Say a table of stock prices for a firms investment portfolio.
The argument against would be the extra storage space it eats up.

Here is an Example of use.

WolfmanDragon
  • 7,851
  • 14
  • 49
  • 61
3

See This discussion for an alternative approach to historical reporting.

Community
  • 1
  • 1
ConcernedOfTunbridgeWells
  • 64,444
  • 15
  • 143
  • 197