"Dann Corbit" <[EMAIL PROTECTED]> writes: > Here is a sort template (that can very easily be turned into a C > routine).
Right offhand I'd guess this to be a loser on not-quite-sorted input, because the tests it makes to try to prove the input is already sorted can add significant overhead before failing. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org