Re: join order - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: join order
Date
Msg-id AANLkTi=DbetG_BPmtua10hBETtvLcdk+aOCdnFxfvSCy@mail.gmail.com
Whole thread Raw
In response to join order  (AI Rumman <rummandba@gmail.com>)
List pgsql-performance
On Mon, Oct 11, 2010 at 12:38 AM, AI Rumman <rummandba@gmail.com> wrote:
> I need to join two tales say TAB_A and TAB_B, where TAB_A is greater than
> TAB_B in size and records.
> Which Table should I put first in join order?

If it's a regular old inner join it doesn't matter, the query planner
will figure it out.  If it's a left or right join then you
(hopefullly) already know the order you need to use.  If it's a full
outer join again it doesn't matter, the query planner will figure it
out.

--
To understand recursion, one must first understand recursion.

pgsql-performance by date:

Previous
From: AI Rumman
Date:
Subject: join order
Next
From: "Pierre C"
Date:
Subject: Re: Slow count(*) again...