Re: comma vs cross join question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mailing(dot)lists(at)octgsoftware(dot)com
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: comma vs cross join question
Date: 2011-04-08 18:45:08
Message-ID: 16103.1302288308@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jason Long <mailing(dot)lists(at)octgsoftware(dot)com> writes:
> I am using 9.0.3 and the only setting I have changed is
> geqo_effort = 10

> One of the joins is a view join.

Ah. The explain shows there are actually nine base tables in that
query, which is more than the default join_collapse_limit. Try cranking
up both join_collapse_limit and from_collapse_limit to 10 or so.
(I'm not sure offhand if from_collapse_limit affects this case, but it
might.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shianmiin 2011-04-08 18:51:38 Re: PostgreSQL backend process high memory usage issue
Previous Message Stephen Frost 2011-04-08 18:44:08 Re: Count for pagination