From: Vaclav Juza <vaclav.juza@xitee.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7598: Loss of view performance after dump/restore of the view definition
Date: Tue, 16 Oct 2012 09:24:25 +0200
Message-ID: <507D0BA9.7010705@xitee.com> (raw)
In-Reply-To: <10398.1350315840@sss.pgh.pa.us>
References: <E1TMGxP-0007Th-2h@wrigleys.postgresql.org>
<22733.1350077071@sss.pgh.pa.us>
<507BFF51.201@xitee.com>
<10398.1350315840@sss.pgh.pa.us>
I was doing the test on the released 9.2.1 (without the patch).
The times of the query with the original view were floating around those
values, so it's maybe just a luck that it was slightly slower on 9.2.1.
The big difference was after the view was restored with the explicit
cast. The purpose of this updated test case was mainly that you can
check which change between 9.1.4 and 9.2.1 could have caused this
performance regression and if this change can have some negative impact
(on different queries) even after applying the patch.
Thanks for the patch anyway.
Regards,
Vaclav Juza
On 15/10/2012 17:44, Tom Lane wrote:
> Vaclav Juza <vaclav.juza@xitee.com> writes:
>> I have modified the test case (it is more similar to the real-word
>> query), so that now it is slower on 9.2.1 than on 9.1.4 (the version
>> with the explicit cast):
>
> FWIW, testing this on HEAD (with the patch I committed last week),
> I get a plan that's about 10% faster than 9.1; or if I disable
> index-only scans for a more level playing field, it's just about
> equivalent to 9.1.
>
> 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-bugs@postgresql.org
Cc: vaclav.juza@xitee.com, tgl@sss.pgh.pa.us
Subject: Re: BUG #7598: Loss of view performance after dump/restore of the view definition
In-Reply-To: <507D0BA9.7010705@xitee.com>
References: <E1TMGxP-0007Th-2h@wrigleys.postgresql.org> <22733.1350077071@sss.pgh.pa.us> <507BFF51.201@xitee.com> <10398.1350315840@sss.pgh.pa.us> <507D0BA9.7010705@xitee.com>
* 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