Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 3FD479FC121 for ; Sat, 2 Jun 2007 12:25:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 43912-02 for ; Sat, 2 Jun 2007 12:25:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id D53B99FC205 for ; Sat, 2 Jun 2007 12:25:13 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l52FPBoQ008863; Sat, 2 Jun 2007 11:25:11 -0400 (EDT) To: Douglas J Hunley cc: pgsql-performance@postgresql.org Subject: Re: upgraded to pgsql 8.2.4, getting worse performance then 7.4.x In-reply-to: <200706020913.32241.doug@hunley.homeip.net> References: <200706020913.32241.doug@hunley.homeip.net> Comments: In-reply-to Douglas J Hunley message dated "Sat, 02 Jun 2007 09:13:32 -0400" Date: Sat, 02 Jun 2007 11:25:11 -0400 Message-ID: <8862.1180797911@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/13 X-Sequence-Number: 25046 Douglas J Hunley writes: > ... We dumped their db, removed pgsql, installed the 8.2.4 > rpms from postgresql.org, did an initdb, and the pg_restored their data. It's > been about a week now, and the customer is complaining that in their testing, > they are seeing a 30% /decrease/ in general performance. Well, you've definitely blown it on transferring the config-file settings --- a quick look says that shared_buffers, work_mem, and max_fsm_pages are all still default in the 8.2 config file. Don't be frightened off by the "KB/MB" usages in the 8.2 file --- you can still write "shared_buffers = 25000" if you'd rather specify it in number of buffers than in megabytes. There are some things you *did* transfer that I find pretty questionable, like "enable_mergejoin = false". There are very major differences between the 7.4 and 8.2 planners, so you need to revisit the tests that led you to do that. Another thing that seems strange is that the 8.2 config file does not seem to have been processed by initdb --- or did you explicitly comment out the settings it made? Another thing to check is whether you ANALYZEd the new database after loading data; a pg_dump/reload sequence doesn't do that. regards, tom lane