aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execUtils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-03-15 23:22:03 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-03-15 23:22:03 -0400
commit83587a075dd1d6380de24f16df85bf629689effc (patch)
treee1cf07f192ed5c7014575b971b61172588d8b9e2 /src/backend/executor/execUtils.c
parent2cb76fa6ff63d1d94a18012ec95835af5355f0e5 (diff)
downloadpostgresql-83587a075dd1d6380de24f16df85bf629689effc.tar.gz
postgresql-83587a075dd1d6380de24f16df85bf629689effc.zip
Replace insertion sort in contrib/intarray with qsort().
It's all very well to claim that a simplistic sort is fast in easy cases, but O(N^2) in the worst case is not good ... especially if the worst case is as easy to hit as "descending order input". Replace that bit with our standard qsort. Per bug #12866 from Maksym Boguk. Back-patch to all active branches.
Diffstat (limited to 'src/backend/executor/execUtils.c')
0 files changed, 0 insertions, 0 deletions