Add sort_template.h for making sort functions.

Thomas Munro <tmunro@postgresql.org>

Commit: 0a1f1d3cac6baaa3744b89336673caba702f7628
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-03-03T04:02:22Z
Releases: 14.0
Add sort_template.h for making sort functions.

Move our qsort implementation into a header that can be used to define
specialized functions for better performance and reduced duplication.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CA%2BhUKGJ2-eaDqAum5bxhpMNhvuJmRDZxB_Tow0n-gse%2BHG0Yig%40mail.gmail.com

Files

PathChange+/−
src/include/lib/sort_template.h added +431 −0
src/tools/pgindent/typedefs.list modified +2 −0

Discussion