Re: Strange behavior after upgrade from 9.0 to 9.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrzej Zawadzki <zawadaa(at)wp(dot)pl>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Strange behavior after upgrade from 9.0 to 9.2
Date: 2012-10-08 15:56:27
Message-ID: 2490.1349711787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Andrzej Zawadzki <zawadaa(at)wp(dot)pl> writes:
> On 08.10.2012 16:52, Tom Lane wrote:
>> [ counts... ] You've got nine base relations in that query. I think
>> you need to increase from_collapse_limit and/or join_collapse_limit.

> Bingo! Thank you!

> But... looks like in 9.0 this worked differently or option was skipped?
> Because I had default settings of that options and query has worked fine.

It looks like 9.0 wasn't flattening the EXISTS subqueries, so those
tables didn't count as relations of the main query.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andrzej Zawadzki 2012-10-08 16:14:25 Re: Strange behavior after upgrade from 9.0 to 9.2
Previous Message Andrzej Zawadzki 2012-10-08 15:41:17 Re: Strange behavior after upgrade from 9.0 to 9.2