Re: ORDER BY user defined function performance issues - Mailing list pgsql-performance

From Tom Lane
Subject Re: ORDER BY user defined function performance issues
Date
Msg-id 16729.1086976782@sss.pgh.pa.us
Whole thread Raw
In response to ORDER BY user defined function performance issues  (Nick Trainor <nick.trainor@trainorthornton.co.uk>)
List pgsql-performance
Nick Trainor <nick.trainor@trainorthornton.co.uk> writes:
> What am I missing here?

The ORDER BY query has to evaluate the function at *every* row of the
table before it can sort.  The other query was only evaluating the
function at twenty rows.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: reindex and copy - deadlock?
Next
From: "Merlin Moncure"
Date:
Subject: in-transaction insert performance in 7.5devel