Re: Different query plans on same servers

From: Mario Splivalo <mario(dot)splivalo(at)megafon(dot)hr>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Different query plans on same servers
Date: 2011-12-07 00:23:57
Message-ID: 4EDEB21D.3030703@megafon.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 12/06/2011 09:00 PM, Tom Lane wrote:
> Mario Splivalo <mario(dot)splivalo(at)megafon(dot)hr> writes:
>> I have 8.4.8 on producion and 8.4.9 on test, could that explain the
>> difference in plans chosen?
>
> I'd wonder first if you have the same statistics settings on both.
> The big problem here is that the estimation of the join size is bad
> (8588 versus 0).

They do, I guess. I did rsync postgres datadir from the prod server to
the test server. The only difference is that prod server was a bit more
loaded than the test server.

Mario

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mario Splivalo 2011-12-07 00:27:15 Re: Different query plans on same servers
Previous Message Havasvölgyi Ottó 2011-12-06 21:30:11 Response time increases over time