Re: performance - self-joins vs. subqueries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "K(dot) Ari Krupnikov" <ari(at)iln(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: performance - self-joins vs. subqueries
Date: 2001-02-12 23:36:41
Message-ID: 23237.982021001@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"K. Ari Krupnikov" <ari(at)iln(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-02-13 00:19:20 Redundant UNIQUE specs (was Re: [GENERAL] bad error message)
Previous Message Tom Lane 2001-02-12 23:33:44 Re: Howto install postgresql 7.03 on Darwin 1.2