X-Original-To: pgsql-performance@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 97531475ADE for ; Mon, 24 Feb 2003 14:08:17 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 40576-01 for ; Mon, 24 Feb 2003 14:08:06 -0500 (EST) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id 23BC7475D87 for ; Mon, 24 Feb 2003 13:46:13 -0500 (EST) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 2855016; Mon, 24 Feb 2003 10:46:12 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Robert Treat , Clarence Gardner Subject: Re: slow query Date: Mon, 24 Feb 2003 10:45:20 -0800 User-Agent: KMail/1.4.3 Cc: Oleg Lebedev , "pgsql-performance@postgresql.org" References: <1046111434.1014.165.camel@camel> In-Reply-To: <1046111434.1014.165.camel@camel> MIME-Version: 1.0 Message-Id: <200302241045.20856.josh@agliodbs.com> Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/181 X-Sequence-Number: 1237 Robert, > Actually if you are vacuuming frequently enough, it can (and should*) > obviate a vacuum full. Be aware that frequently enough might mean really > frequent, for instance I have several tables in my database that update > every row within a 15 minute timeframe, so I run a "lazy" vacuum on > these tables every 10 minutes. This allows postgresql to reuse the space > for these tables almost continuously so I never have to vacuum full > them. This would assume absolutely perfect FSM settings, and that the DB never ge= ts=20 thrown off by unexpected loads. I have never been so fortunate as to work= =20 with such a database. However, I agree that good FSM tuning and frequent= =20 regular VACUUMs can greatly extend the period required for running FULL. I have not found, though, that this does anything to prevent the need for= =20 REINDEX on frequently-updated tables. How about you, Robert? --=20 Josh Berkus Aglio Database Solutions San Francisco