Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 36411B5DD4D for ; Fri, 28 Oct 2011 02:02:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 75228-01-7 for ; Fri, 28 Oct 2011 05:01:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0A1A0B5DDD9 for ; Fri, 28 Oct 2011 01:53:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9S4rD1T013999; Fri, 28 Oct 2011 00:53:13 -0400 (EDT) To: "Finlay Thompson" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6275: Horrible performance regression In-reply-to: <201110280242.p9S2gdRI054867@wwwmaster.postgresql.org> References: <201110280242.p9S2gdRI054867@wwwmaster.postgresql.org> Comments: In-reply-to "Finlay Thompson" message dated "Fri, 28 Oct 2011 02:42:39 +0000" Date: Fri, 28 Oct 2011 00:53:13 -0400 Message-ID: <13998.1319777593@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/273 X-Sequence-Number: 31543 "Finlay Thompson" writes: > After an upgrade from 8.4.8 to 8.4.9 performance of load script went from ~ > 3 hours to not finishing after 24 hours. > Context: We have a continuous build script, that loads, grooms, matches data > every few hours. The script has been run over 100 times in the last few > weeks, and has steadily been taking around 3 hours. It is really a group of > scripts, something like 15000 lines of sql, and some python scripts to run > it together. > After upgrading the postgresql*-8.4 packages on ubuntu, to version 8.4.9, > the script suddenly stopped working, and consuming all the ram (16GB) on the > computer (i7). Well, the most likely theory seems to be that one of the planner changes in 8.4.9 is resulting in a much less optimal plan choice for one or more queries, but it's impossible to diagnose it on the basis of this much information. > btw: The database uses plpython and postgis. Hmm, did you change postgis versions at the same time? If so, which upgrade caused the problem, postgres or postgis? regards, tom lane