Re: order of nested loop - Mailing list pgsql-general

From Jean-Luc Lachance
Subject Re: order of nested loop
Date
Msg-id 3EEF3961.9F295E7B@nsd.ca
Whole thread Raw
In response to order of nested loop  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: order of nested loop
List pgsql-general
Tom Lane wrote:
>
> Jean-Luc Lachance <jllachan@nsd.ca> writes:
> > I am currious.  Why perform a sort first?  Would it not be more
> > efficient to create an in memory index on the fly?
>
> Why would you think that?  Creating an index involves a sort ...
> there's no free lunch there that I can see.
>
>                         regards, tom lane


There is only a small difference, but distinct implies unique index
which mean there is no need to sort duplicate records.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: order of nested loop
Next
From: Paul Thomas
Date:
Subject: Re: postgresql + jboss