Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TO1Vy-0001gJ-3t for pgsql-bugs@postgresql.org; Tue, 16 Oct 2012 07:24:34 +0000 Received: from xitee.com ([217.11.236.49]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TO1Vr-0001wR-Lg for pgsql-bugs@postgresql.org; Tue, 16 Oct 2012 07:24:33 +0000 Received: (qmail 5854 invoked from network); 16 Oct 2012 09:24:26 +0200 Received: from unknown (HELO ?192.168.1.60?) (217.195.162.244) by xitee.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 16 Oct 2012 09:24:26 +0200 Message-ID: <507D0BA9.7010705@xitee.com> Date: Tue, 16 Oct 2012 09:24:25 +0200 From: Vaclav Juza Organization: xITee k.s. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7598: Loss of view performance after dump/restore of the view definition References: <22733.1350077071@sss.pgh.pa.us> <507BFF51.201@xitee.com> <10398.1350315840@sss.pgh.pa.us> In-Reply-To: <10398.1350315840@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201210/163 X-Sequence-Number: 34463 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 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 >