Specialize checkpointer sort functions.

Thomas Munro <tmunro@postgresql.org>

Commit: 1b88b8908e751271933c076234fa085cda251421
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-03-12T10:56:02Z
Releases: 14.0
Specialize checkpointer sort functions.

When sorting a potentially large number of dirty buffers, the
checkpointer can benefit from a faster sort routine.  One reported
improvement on a large buffer pool system was 1.4s -> 0.6s.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGJ2-eaDqAum5bxhpMNhvuJmRDZxB_Tow0n-gse%2BHG0Yig%40mail.gmail.com

Files

PathChange+/−
src/backend/storage/buffer/bufmgr.c modified +22 −15

Discussion