points by xyzzy_plugh 3 days ago | 0 comments
Yes. This is the thing that tripped me the most when learning postgres internals. It was obvious that append-only enabled stable addressing but then it just never materializes. I was incredibly perplexed. Surely I'm missing something right? Nope!
[–] senderista 3 days ago
[–] mike_hearn 3 days ago
The simplest form of Flashback just uses the undo logs. Normally undo is deleted once no live transaction uses it, but you can set a retention time to allow SELECT ... AS OF ... queries to go back at least that far.
However, keeping undo logs around forever isn't practical. If you want to go back a year then there's Flashback Time Travel which copies old data into tables in a form that the query engine can use to answer AS OF queries more efficiently.
[–] senderista 2 days ago
I don’t know if Flashback uses this technique, but the SQL Server architect who taught me time-split B-trees now works at Oracle :)
[–] mike_hearn 2 days ago
[–] senderista 1 day ago
[–] mike_hearn 22 hours ago
[–] xyzzy_plugh 3 days ago