Re: Force optimizer to use hash/nl/merge join?

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Zhan Li <zhanli89(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Force optimizer to use hash/nl/merge join?
Date: 2013-11-18 14:33:54
Message-ID: CAA4eK1LvOA=_cQTbbi9RKG7t4RwtSszdCRoHR1jreN3ny+q4aQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 18, 2013 at 7:58 PM, Zhan Li <zhanli89(at)gmail(dot)com> wrote:
> Hi All,
>
> Is there any way to force the optimizer to use a specific join operator? For
> example, in SQL Server, I can do this way
>
> select * from (A inner hash join B on A.a = B.b) inner loop join C on A.a =
> C.c
>
> I did some search but didn't find PostgreSQL had similar join hints except
> for enable_* setting which doesn't help in my case.

PostgreSQL doesn't have join hints.

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-11-18 14:36:50 Re: inherit support for foreign tables
Previous Message Amit Kapila 2013-11-18 14:31:23 Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])