Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3

From: Richard Huxton <dev(at)archonet(dot)com>
To: vincent(dot)moreau(at)leroymerlin(dot)fr
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3
Date: 2007-03-13 13:28:47
Message-ID: 45F6A70F.6050008@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

vincent(dot)moreau(at)leroymerlin(dot)fr wrote:
> Thanks for the update.
>
> The following did not change anything in the execution plan
>
> ALTER TABLE lm05_t_tarif_panneau ALTER COLUMN lrg_min SET STATISTICS 1000
> ALTER TABLE lm05_t_tarif_panneau ALTER COLUMN lrg_max SET STATISTICS 1000
> ANALYZE lm05_t_tarif_panneau

Hmm - so it's not the distribution of those values.

> I was able to improve response time by creating indexes, but I would
> like to avoid changing the database structure because it is not
> maintained by ourseleves, but by the third party vendor.

Well, the indexes can't do any harm, but it would be nice not to need them.

Could you post the explain analyse with the indexes? To see how the
costs compare.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message James Riordan 2007-03-13 13:36:47 Dispatch-Merge pattern
Previous Message vincent.moreau 2007-03-13 13:28:24 Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3