]> granicus.if.org Git - postgresql/commit
Switch over to using our own qsort() all the time, as has been proposed
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Oct 2006 22:18:23 +0000 (22:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 3 Oct 2006 22:18:23 +0000 (22:18 +0000)
commit6edd2b4a91bda90b7f0290203bf5c88a8a8504db
treec0890bc97d0e2d1e1c92b9b883150a91995dbc89
parented80f5701be9322d319a4abaef0e4f47f6144f5b
Switch over to using our own qsort() all the time, as has been proposed
repeatedly.  Now that we don't have to worry about memory leaks from
glibc's qsort, we can safely put CHECK_FOR_INTERRUPTS into the tuplesort
comparators, as was requested a couple months ago.  Also, get rid of
non-reentrancy and an extra level of function call in tuplesort.c by
providing a variant qsort_arg() API that passes an extra void * argument
through to the comparison routine.  (We might want to use that in other
places too, I didn't look yet.)
configure
configure.in
src/Makefile.global.in
src/backend/utils/sort/tuplesort.c
src/include/port.h
src/port/qsort.c
src/port/qsort_arg.c [new file with mode: 0644]