From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nick Trainor <nick.trainor@trainorthornton.co.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: ORDER BY user defined function performance issues
Date: Fri, 11 Jun 2004 13:59:42 -0400
Message-ID: <16729.1086976782@sss.pgh.pa.us> (raw)
In-Reply-To: <20040611110837.E5F5215D888@ns.trainorthornton.co.uk>
References: <20040611110837.E5F5215D888@ns.trainorthornton.co.uk>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, nick.trainor@trainorthornton.co.uk
Subject: Re: ORDER BY user defined function performance issues
In-Reply-To: <16729.1086976782@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox