Thread: pgsql: Use the sortsupport infrastructure in more cases.

pgsql: Use the sortsupport infrastructure in more cases.

From
Robert Haas
Date:
Use the sortsupport infrastructure in more cases.

This removes some fmgr overhead from cases such as btree index builds.

Peter Geoghegan, reviewed by Andreas Karlsson and me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5ea86e6e65dd2da3e9a3464484985d48328e7fe3

Modified Files
--------------
src/backend/access/nbtree/nbtsort.c  |   63 ++++----
src/backend/utils/sort/sortsupport.c |   79 +++++++---
src/backend/utils/sort/tuplesort.c   |  275 ++++++++++++++--------------------
src/include/utils/sortsupport.h      |    3 +
4 files changed, 206 insertions(+), 214 deletions(-)