Attached please find new version of AS OF patch which allows to specify
time travel period.
Older versions outside this period may be reclaimed by autovacuum.
This behavior is controlled by "time_travel_period" parameter.
Zero value of this parameter disables time travel and postgres behaves
in standard way.
Actually you can still use AS AF construction but there is no warranty
that requested versions are not reclaimed and result of query actually
belongs to the specified time slice.
Value -1 means infinite history: versions are never reclaimed and
autovacuum is disabled.
And positive value of this parameter specifies maximal time travel
period in seconds.
As in case of disabled time travel, you can specify AS OF timestamp
older than this period.
But there is no warranty that requested versions still exist.
--
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company