Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNmpr-0006mZ-7q for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 15:44:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNmpl-0004S7-Ly for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 15:44:06 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q9FFi08x010399; Mon, 15 Oct 2012 11:44:00 -0400 (EDT) From: Tom Lane To: Vaclav Juza cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7598: Loss of view performance after dump/restore of the view definition In-reply-to: <507BFF51.201@xitee.com> References: <22733.1350077071@sss.pgh.pa.us> <507BFF51.201@xitee.com> Comments: In-reply-to Vaclav Juza message dated "Mon, 15 Oct 2012 14:19:29 +0200" Date: Mon, 15 Oct 2012 11:44:00 -0400 Message-ID: <10398.1350315840@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201210/147 X-Sequence-Number: 34447 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