Hi all,
While reading the code of SnapBuildPurgeOlderTxn, I noticed the TODO comment suggesting a neater algorithm instead of using a temporary workspace for copying committed xids.
I’ve implemented an in-place purge approach for the committed xid array to eliminate the overhead of memory allocation and data copying.
Tested locally without issues—happy to hear your thoughts.