From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abu Mushayeed <abumushayeed@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Plannner favoring nested loop
Date: Mon, 07 May 2007 17:37:33 -0400
Message-ID: <19019.1178573853@sss.pgh.pa.us> (raw)
In-Reply-To: <888904.7334.qm@web57103.mail.re3.yahoo.com>
References: <888904.7334.qm@web57103.mail.re3.yahoo.com>
Abu Mushayeed <abumushayeed@yahoo.com> writes:
> I am trying to determine if I can make the planner see that nested loop is very expensive while it is trying to do an plan for a query and not pick that route.
If it's doing that when it shouldn't, it's probably because it's
underestimated the number of rows in the outer relation. Look to your
stats settings.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, abumushayeed@yahoo.com
Subject: Re: Plannner favoring nested loop
In-Reply-To: <19019.1178573853@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