Soumyadeep Chakraborty <soumyadeep2...@gmail.com> writes: > Attached is a simple patch to directly use heap scan routines in > vac_update_datfrozenxid(), avoiding the multilayer overhead from the > sysscan infrastructure.
I would think the overhead of that is minuscule. If it isn't, we should try to make it so, not randomly hack up some of the callers to avoid it. The intention certainly was that it wouldn't cost anything compared to what happens within the actual table access. regards, tom lane