From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ryszard Lach <siaco@autograf.pl>
Cc: pgsql-performance@postgresql.org
Subject: Re: 7.3 vs 7.2 - different query plan, bad performance
Date: Mon, 16 Jun 2003 10:17:43 -0400
Message-ID: <2680.1055773063@sss.pgh.pa.us> (raw)
In-Reply-To: <20030616114147.GJ1734@siaco.id.pl>
References: <20030613184506.GE21614@siaco.id.pl>
<ugipevc89eaqk90s23n8kd2iut5uvskpk4@4ax.com>
<20030616063850.GA31813@siaco.id.pl>
<373rev0fotgpq2osvlldf41b8flambulk9@4ax.com>
<20030616114147.GJ1734@siaco.id.pl>
Ryszard Lach <siaco@autograf.pl> writes:
> The point is, that my tables (and queries) are a 'little' bit more
> complicated and I wanted to give as simple example as I could. I think
> that problem is that subselects are _much_slower_ executed in 7.3 than
> in 7.2, just as someone already wrote here.
No, the problem is that 7.3 fails to notice that it doesn't really need
to execute the subselect at all. This is the price we paid for being
sure that a post-release bug fix wouldn't break anything more serious.
There is a better fix in place for 7.4.
regards, tom lane
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: tgl@sss.pgh.pa.us, siaco@autograf.pl
Subject: Re: 7.3 vs 7.2 - different query plan, bad performance
In-Reply-To: <2680.1055773063@sss.pgh.pa.us>
References: <20030613184506.GE21614@siaco.id.pl> <ugipevc89eaqk90s23n8kd2iut5uvskpk4@4ax.com> <20030616063850.GA31813@siaco.id.pl> <373rev0fotgpq2osvlldf41b8flambulk9@4ax.com> <20030616114147.GJ1734@siaco.id.pl> <2680.1055773063@sss.pgh.pa.us>
* 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