From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-performance@ian.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Why do my hash joins turn to nested loops?
Date: Thu, 21 Aug 2008 20:49:17 -0400
Message-ID: <27300.1219366157@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.64.0808211837250.4498@www.sportsmogul.com>
References: <20080821223626.39BC212A6CFB@mx2.hub.org>
<Pine.LNX.4.64.0808211837250.4498@www.sportsmogul.com>
pgsql-performance@ian.org writes:
> One query works fast, returning results in under a second. If I insert
> one more join into the table however, it switches to nested-loops and
> takes minutes.
I think you need to raise from_collapse_limit and/or
join_collapse_limit.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-performance@ian.org
Subject: Re: Why do my hash joins turn to nested loops?
In-Reply-To: <27300.1219366157@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox