mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
when recycling a large number of xlog segments during checkpoint. The former behavior searched from the same start point each time, requiring O(checkpoint_segments^2) stat() calls to relocate all the segments. Instead keep track of where we stopped last time through.