Re: Confusing performance of specific query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Endicott <leftwing17(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Confusing performance of specific query
Date: 2007-08-10 05:47:28
Message-ID: 11587.1186724848@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Endicott <leftwing17(at)gmail(dot)com> writes:
> Here's the output from explain analyze.

Wow, so the differential is all in the sort step.

8.2 does have improved sorting code, but I don't think that explains
the difference, especially not for a mere 16000 rows to be sorted.

Do you have comparable work_mem settings on both machines? Another
thing to look at, if any of the sort key columns are textual, is whether
the lc_collate settings are the same.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tommy Gildseth 2007-08-10 06:12:38 Re: Internal Postgre SQL documentation
Previous Message david 2007-08-10 05:27:43 Re: Dell Hardware Recommendations