Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRq3C-0000Ji-Jt for pgsql-performance@postgresql.org; Fri, 26 Oct 2012 19:58:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRq38-0002S3-03 for pgsql-performance@postgresql.org; Fri, 26 Oct 2012 19:58:38 +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 q9QJwXOK001902; Fri, 26 Oct 2012 15:58:33 -0400 (EDT) From: Tom Lane To: robcron cc: pgsql-performance@postgresql.org Subject: Re: Slower Performance on Postgres 9.1.6 vs 8.2.11 In-reply-to: <1351276200087-5729749.post@n5.nabble.com> References: <1351276200087-5729749.post@n5.nabble.com> Comments: In-reply-to robcron message dated "Fri, 26 Oct 2012 11:30:00 -0700" Date: Fri, 26 Oct 2012 15:58:32 -0400 Message-ID: <1901.1351281512@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/323 X-Sequence-Number: 48282 robcron writes: > Our IT group took over an app that we have running using postgres and it has > been on version 8.2.11 since we acquired it. It is time to get current, so > I have created instances of our production database that mirror exact > hardware for our existing implementation on version 8.2.11 (running Fedora > Core 8 - wow I know) and also version 9.1.6 on Fedora 17. I am able to > mimic the production 8.2 environment exactly without any of the load of > production and the same for the new 9.1 environment so there is no > perverting of numbers based on load that I can't control > Machines are Cloud based images running 4 (dual Core) Processors, with 15GB > of memory... AMAZON m1.Xlarge boxes - 64 bit OS. Hm ... Amazon cloud is not exactly known for providing rock-stable performance environment, but anyway the first thing I would have guessed at, seeing that the plans are basically the same, was a non-C locale setting. Another thing to check is whether the new machine has higher timing overhead --- is the speed difference the same when you just run the query, rather than EXPLAIN ANALYZE'ing it? (If not, contrib/pg_test_timing from 9.2 or later might yield useful data.) regards, tom lane