Add sort_template.h for making sort functions.
Thomas Munro <tmunro@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/include/lib/sort_template.h | added | +431 −0 |
| src/tools/pgindent/typedefs.list | modified | +2 −0 |
Discussion
- A qsort template 85 messages · 2021-02-18 → 2022-05-23