Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 72C3B9F9A26 for ; Sun, 23 Sep 2007 16:12:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80806-05 for ; Sun, 23 Sep 2007 16:12:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.net-domino.com (www.net-domino.com [74.208.11.96]) by postgresql.org (Postfix) with ESMTP id 8E8EC9F99EC for ; Sun, 23 Sep 2007 16:12:00 -0300 (ADT) Received: from [127.0.0.1] (u15245314.onlinehome-server.com [74.208.11.96]) by mail.net-domino.com (8.13.7/8.13.6) with ESMTP id l8NJCOXM010997 for ; Sun, 23 Sep 2007 15:12:32 -0400 Message-ID: <46F6BA82.3080101@mochima.com> Date: Sun, 23 Sep 2007 15:12:02 -0400 From: Carlos Moreno User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Possible explanations for catastrophic performace deterioration? References: <46F6981B.1010600@mochima.com> <36e682920709230956p1312745eif1c6ba7a342dae3d@mail.gmail.com> <46F6AD2D.4090300@mochima.com> <20070923182349.GC5679@alvh.no-ip.org> In-Reply-To: <20070923182349.GC5679@alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Added-Header: Sample_milter accepted message X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/404 X-Sequence-Number: 26949 >> I don't understand this argument --- the newer system has actually >> less memory than the old one; how could it fit there and not on the >> old one? Plus, how could dropping-recreating the database on the same >> machine change the fact that the entire dataset entirely fit or not in >> memory?? > > Because on the older server it is bloated, while on the new one it is > fresh thus no dead tuples. Wait a second --- am I correct in understanding then that the bloating you guys are referring to occurs *in memory*?? My mind has been operating under the assumption that bloating only occurs on disk, and never in memory --- is there where my logic is mistaken? >> I wonder if I should then periodically run a vacuum full --- say, once >> a week? Once a month? > > Never. What you need to do is make sure your FSM settings > (fsm_max_pages in particular) are high enough, and that you VACUUM (not > full) frequently enough. Noted. Thanks! Carlos --