Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7AF9163379B for ; Mon, 4 Jan 2010 18:51:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93458-02 for ; Mon, 4 Jan 2010 22:51:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mail.postgresql.org (Postfix) with ESMTP id A646463377D for ; Mon, 4 Jan 2010 18:51:39 -0400 (AST) Received: by ewy26 with SMTP id 26so13637412ewy.3 for ; Mon, 04 Jan 2010 14:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ySSfa4xT7w877UIiaRNGN2+3csZNrbyyEvX3P8yvYxY=; b=EOFP0MS3LdJuf4eqahI9BmXA1G8F5ty967asmZWAVQTJLHzNH24RrobOqr35teQGCm YV7KUG4uiJQjog6QoFbsN7bFrUA6vCrn0uZCwVFZntQbuqiqlQwP1cjj7qargOeJfoH1 jnbmIBxuaW8W0wRyCYrCChZiCTjJdRVmxiCSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Y7kudCrl4DDqvHcPbOpr1v7pu2r+eFt715UHYGaA/oGUV1Fs5igCc55og7QMmkhAxJ MWQzzYvXs6LNeK+e7KnZ7fxh8CYzP2FsH3aEu0abXOf4xacqT859aoPQvmRfkiE1awYO vCQ9yrrenALjT829veZ2WZ7X/8lVE3c1HMFV8= MIME-Version: 1.0 Received: by 10.216.90.137 with SMTP id e9mr3793727wef.141.1262645497663; Mon, 04 Jan 2010 14:51:37 -0800 (PST) In-Reply-To: <4B426823.4040001@2ndquadrant.com> References: <4B423D22.7040803@alteeve.com> <4B424215.70605@pinpointresearch.com> <4B424FF6.40207@alteeve.com> <4B4260E6.7050502@pinpointresearch.com> <4B42638B.4000103@alteeve.com> <4B426823.4040001@2ndquadrant.com> Date: Mon, 4 Jan 2010 15:51:37 -0700 Message-ID: Subject: Re: DB is slow until DB is reloaded From: Scott Marlowe To: Greg Smith Cc: Madison Kelly , Steve Crawford , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.189 tagged_above=-10 required=5 tests=BAYES_50=0.001, FH_DATE_PAST_20XX=3.188 X-Spam-Level: *** X-Archive-Number: 201001/29 X-Sequence-Number: 36909 On Mon, Jan 4, 2010 at 3:13 PM, Greg Smith wrote: > Madison Kelly wrote: >> >> I think for now, I will stick with 8.1, but I will certainly try out you= r >> repo edit above on a test machine and see how that works out. I am alway= s >> reticent to change something as fundamental as postgres without "good >> reason". I guess I am a fan of "if it ain't broke...". :) > > PostgreSQL has many fundamental limitations that cannot be resolved no > matter what you do in 8.1 that are fixed in later versions. =A0The defaul= t > behavior for the problem you're having has been massively improved by > updates made in 8.2, 8.3, and 8.4. =A08.1 can certainly be considered bro= ken > in regards to its lack of good and automatic VACUUM and ANALYZE behavior, > and you're just seeing the first round of issues in that area. =A0Every m= inute > you spend applying temporary fixes to the fundamental issues is time you > could be better spending toward upgrading instead. Also, the HOT updates in 8.3 made a compelling case for us to update, and if the OP is suffering from table bloat, HOT might help a lot.