Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 9521365AD80 for ; Tue, 16 Mar 2010 14:08:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 77066-02 for ; Tue, 16 Mar 2010 17:08:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 9F8E165B1C8 for ; Tue, 16 Mar 2010 14:00:31 -0300 (ADT) Received: by pva4 with SMTP id 4so77776pva.19 for ; Tue, 16 Mar 2010 10:00:30 -0700 (PDT) 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; bh=0qTGcAbyEqoVivYb85Vgm26wYm7ljJUYT37l7FXimW8=; b=mudahqgZkKy++oeZY49Epc+Dw7F5+7zAO4IipC9D6XIwr9kg4jVn1lr6py5oKTbsKG NeLYGjUdahmI3zG6B8tqIx86qDb2KjYLc1F+mCPw4PurL7WM9sVodAdBdfbDDAOJmxNQ hPPpcXU366u2UkEnJbPcWCB/VlPh2+K5zplPE= 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; b=Zrw550VLAPA2NRJu26mma2gfoHM4XJG6gWGs4ZYhGry1l7eivPMYxTzfS0gMflwkP0 XrIDpQdlaEto0oQhf2hVrCn0sz4yQv6nCpHLpfs/tvcpNKaNZiWoEfpgT8Oe1f9KrC4t PLhHKDaUwp57K/Kde6YD16X0ip0O5kgSRRxSc= MIME-Version: 1.0 Received: by 10.142.196.19 with SMTP id t19mr50666wff.151.1268758688689; Tue, 16 Mar 2010 09:58:08 -0700 (PDT) In-Reply-To: <27913694.post@talk.nabble.com> References: <27913694.post@talk.nabble.com> Date: Tue, 16 Mar 2010 10:58:08 -0600 Message-ID: Subject: Re: Postgres DB maintainenance - vacuum and reindex From: Scott Marlowe To: Meena_Ramkumar Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.341 tagged_above=-10 required=5 tests=AWL=0.258, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/172 X-Sequence-Number: 37997 On Mon, Mar 15, 2010 at 11:30 PM, Meena_Ramkumar wrote: > > How to run vacuumdb and reindex for Postgres DB in a non-stop server? Will it > be made without shutting the server? If so, then what will be performance > degradation percentage? vacuum can be tuned by the various vacuum_* parameters in the postgresql.conf file to have little or no impact on other processes running. Depending on your IO subsystem, you can tune it up or down to fit your needs (speed versus impact on other processes). reindex however tends to be more intrusive to the system, and may cause some performance degradation, which will be very dependent on your IO subsystem (i.e. a single 7200RPM SATA drive system is more likely to notice and be slowed down by reindexing than a 48 disk 15krpm SAS RAID-10 array. The more important question is what problem are you trying to solve, and are there other, better approaches than the ones you're trying. Without more info, no one can really say.