X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6D5CDD1CA0F for ; Wed, 19 Nov 2003 00:01:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 42378-03 for ; Tue, 18 Nov 2003 20:01:21 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 4213DD1B520 for ; Tue, 18 Nov 2003 20:01:18 -0400 (AST) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3941320; Tue, 18 Nov 2003 16:02:05 -0800 Content-Type: text/plain; charset="us-ascii" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Shridhar Daithankar Subject: More detail on settings for pgavd? Date: Tue, 18 Nov 2003 15:58:45 -0800 User-Agent: KMail/1.4.3 Cc: pgsql-performance@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200311181558.45847.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/146 X-Sequence-Number: 4706 Shridhar, I was looking at the -V/-v and -A/-a settings in pgavd, and really don't=20 understand how the calculation works. According to the readme, if I set -= v=20 to 1000 and -V to 2 (the defaults) for a table with 10,000 rows, pgavd woul= d=20 only vacuum after 21,000 rows had been updated. This seems wrong. Can you clear this up a little? I'd like to tweak these settings but can'= t=20 without being better aquainted with the calculation. Also, you may want to reverse your default ratio for Vacuum/analyze frequen= cy.=20=20 True, analyze is a less expensive operation than Vacuum, but it's also need= ed=20 less often -- only when the *distribution* of data changes. I've seen=20 databases where the optimal vacuum/analyze frequency was every 10 min/once= =20 per day. --=20 -Josh Berkus Aglio Database Solutions San Francisco