views:

378

answers:

2

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

Tnx

+3  A: 

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
Sad. This link doesn't seem to work anymore.
Lailson Bandeira
I found the file in the Github repo: http://github.com/postgres/postgres/blob/master/contrib/spi/timetravel.example
Lailson Bandeira
+2  A: 

See This discussion for an alternative approach to historical reporting.

ConcernedOfTunbridgeWells