Greg Stark <[EMAIL PROTECTED]> writes: > That looks better both on average and in the worst case. Are the time > constants that much worse that the merge sort still takes longer?
Keep in mind that this is only counting the number of comparison-function calls; it's not accounting for any other effects. In particular, for a large sort operation quicksort might win because of its more cache-friendly memory access patterns. The whole question of our qsort vs the system library's qsort probably needs to be revisited, however, now that we've identified and fixed this particular performance issue. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings