Re: Why is sorting on two columns so slower thansortingon one column? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Why is sorting on two columns so slower thansortingon one column?
Date
Msg-id AANLkTim+r8c92DDepkotBe1jgTDPz9c-oeA6V80XbYHw@mail.gmail.com
Whole thread Raw
In response to Re: Why is sorting on two columns so slower thansortingon one column?  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Mon, Dec 27, 2010 at 3:58 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> I think the answer is that only the first column comparison is
> optimised. Second and subsequent comparisons are not optimised.

What sort of optimization are you referring to here?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: new patch of MERGE (merge_204) & a question about duplicated ctid
Next
From: Robert Haas
Date:
Subject: Re: small table left outer join big table