If crashes during VACUUM, will it recover from a checkpoint that is before the forzen transaction ID of VACUUM?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

If crashes during VACUUM, will it recover from a checkpoint that is before the forzen transaction ID of VACUUM?

Jialun Zhang
Hello All,

When VACUUM starts, it will calculate a frozen transaction ID and freeze all tuples older than it. Will this frozen TXID younger than the latest checkpoint? 

If this is the case, then when the system crashes after VACUUM has deleted some dead tuples and the system recovers from this checkpoint, these tuples will be available to some transactions again during the replaying of WAL.  

I am new to Postgres, hope my understanding is not too wrong.

Thanks,
Reatank