Re: order of nested loop

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joseph Shraibman <joseph(at)xtenit(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: order of nested loop
Date: 2003-06-17 15:53:05
Message-ID: 3EEF3961.9F295E7B@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
>
> Jean-Luc Lachance <jllachan(at)nsd(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Thomas 2003-06-17 16:19:13 Re: postgresql + jboss
Previous Message Tom Lane 2003-06-17 15:40:58 Re: order of nested loop