Re: joins and indexes -- a=b or b=a?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: will trillich <will(at)serensoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: joins and indexes -- a=b or b=a?
Date: 2001-03-28 23:25:55
Message-ID: 20340.985821955@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

will trillich <will(at)serensoft(dot)com> writes:
> the only difference is GANG.ID=PERSON.GANG versus
> PERSON.GANG=GANG.ID in the WHERE clause. does it matter?

No. The query planner knows about commutativity ;-)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-03-28 23:31:38 Re: optimizing a view-driven query
Previous Message will trillich 2001-03-28 23:19:15 explain shows lots-o-preliminary sorting