Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0CD592E0340 for ; Tue, 29 Jan 2008 14:40:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 41870-04-5 for ; Tue, 29 Jan 2008 14:40:30 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by postgresql.org (Postfix) with ESMTP id 3E0862E14B1 for ; Tue, 29 Jan 2008 14:36:47 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so4021506waf.5 for ; Tue, 29 Jan 2008 10:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LJblsjoZWK3HF7umh0U9ReZTeX+Z59C7DlfJvE2b5fM=; b=WIKjJE8jG95wOLF7z0FlTXnt5zJagqeSRyGR7t9QfY3sNbjOjiIu5mgwWsJ/PnnxsuHRZIjtJMVKtruKEV2LhKu4T/zhJFuliMweeAVZYugzJwzhMo81C+13g346pgNU3NXqcdoITTw9X/6yoLE+4ooUTbMPBqbOL2vdIg7Zssg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ttsDGYKCiX/GrTjchYh1pQcnxoog6kIINuw5RHShjJBj6TQfQDWX7M+qDoPJqr9YXXIze3mXcpTMNSqxXTgTGtIGU2YIcjIavaVu2m44tlo+w+ouczYbS3m24YP7jeOAY/Nw9cAvlF/cbHPnNqplRIbAvMBQWtu15aNGD26E5Rg= Received: by 10.114.111.1 with SMTP id j1mr6040731wac.138.1201631806739; Tue, 29 Jan 2008 10:36:46 -0800 (PST) Received: by 10.114.131.4 with HTTP; Tue, 29 Jan 2008 10:36:46 -0800 (PST) Message-ID: Date: Tue, 29 Jan 2008 12:36:46 -0600 From: "Scott Marlowe" To: "Adrian Moisey" Subject: Re: analyze Cc: pgsql-performance@postgresql.org In-Reply-To: <479F381D.4000809@careerjunction.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <479F381D.4000809@careerjunction.co.za> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/298 X-Sequence-Number: 28537 On Jan 29, 2008 8:28 AM, Adrian Moisey wrote: > Hi > > How long is a piece of string? > > While we're at it, how often do I vacuum analyze? > > Seriously though, how do I try measure this? 1: Turn on autovacuum. 2: Look up the thread on nagios plugins for pgsql and rip the query for checking bloat out of it, or alternatively, use NAGIOS I guess. :) monitor your db for bloat, and if autovacuum isn't keeping up either set it to be more aggresive, or schedule manual vacuums for the tables that need it.