aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-04-08 02:36:26 -0400
committerRobert Haas <rhaas@postgresql.org>2016-04-08 02:36:26 -0400
commit0711803775a37e0bf39d7efdd1e34d9d7e640ea1 (patch)
tree8f9e68f32ace8aa5ca7520f7589aca419266b0ce /src/backend/access/gist/gist.c
parent719c84c1be51f3d3fe6049b77ddbaa0c4b58a9a9 (diff)
downloadpostgresql-0711803775a37e0bf39d7efdd1e34d9d7e640ea1.tar.gz
postgresql-0711803775a37e0bf39d7efdd1e34d9d7e640ea1.zip
Use quicksort, not replacement selection, for external sorting.
We still use replacement selection for the first run of the sort only and only when the number of tuples is relatively small. Otherwise, the first run, and subsequent runs in all cases, are produced using quicksort. This tends to be faster except perhaps for very small amounts of working memory. Peter Geoghegan, reviewed by Tomas Vondra, Jeff Janes, Mithun Cy, Greg Stark, and me.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions