Re: performance - self-joins vs. subqueries - Mailing list pgsql-general

From K. Ari Krupnikov
Subject Re: performance - self-joins vs. subqueries
Date
Msg-id 3A888331.6DF45B27@iln.net
Whole thread Raw
In response to performance - self-joins vs. subqueries  ("K. Ari Krupnikov" <ari@iln.net>)
Responses Re: performance - self-joins vs. subqueries
List pgsql-general
Tom Lane wrote:
>
> "K. Ari Krupnikov" <ari@iln.net> writes:
> > Many queries can be formulated as either a self-join or a subquery on
> > the same table.
> > Is there any difference in performance, or does the analyzer treat them
> > the same?
>
> You're a lot better off with a self-join, at present.

At present - is there a change planned?

Could you elaborate a little on how such queries are expanded?

--
K. Ari Krupnikov

DBDOM - bridging XML and relational databases
http://www.iter.co.il

pgsql-general by date:

Previous
From: selkovjr@mcs.anl.gov
Date:
Subject: Re: [ANNOUNCE] Request for speakers at O'Reilly conference
Next
From: Nelio Alves Pereira Filho
Date:
Subject: System Tables