From: Alvaro Herrera <alvherre@commandprompt.com>
To: vincent.moreau@leroymerlin.fr
Cc: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3
Date: Tue, 13 Mar 2007 09:09:45 -0400
Message-ID: <20070313130945.GB4490@alvh.no-ip.org> (raw)
In-Reply-To: <45F686FA.2090909@leroymerlin.fr>
References: <45F65EA3.1030706@leroymerlin.fr>
<20070313101117.GA98241@winnie.fuhr.org>
<45F686FA.2090909@leroymerlin.fr>
vincent.moreau@leroymerlin.fr wrote:
> I have attached the requested information.
>
> You will see that the query is quite messy and could be easily improved.
> Unfortunately, it came from a third party application and we do not have
> access to the source code.
There are only nested loops and hash joins, while the other plan seems
to be more elaborate -- I wonder if you have disabled bitmap scan, merge
joins, in 8.2? Try a SHOW enable_mergejoin in psql.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: alvherre@commandprompt.com, vincent.moreau@leroymerlin.fr, mike@fuhr.org
Subject: Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3
In-Reply-To: <20070313130945.GB4490@alvh.no-ip.org>
References: <45F65EA3.1030706@leroymerlin.fr> <20070313101117.GA98241@winnie.fuhr.org> <45F686FA.2090909@leroymerlin.fr> <20070313130945.GB4490@alvh.no-ip.org>
* 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