Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1934F1337B67 for ; Thu, 4 Nov 2010 10:59:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 50965-06 for ; Thu, 4 Nov 2010 13:59:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.sdb.it (mail.sdb.it [212.141.11.2]) by mail.postgresql.org (Postfix) with ESMTP id E3622133616B for ; Thu, 4 Nov 2010 10:59:26 -0300 (ADT) Received: by mail.sdb.it (Postfix, from userid 500) id 4F2A68135; Thu, 4 Nov 2010 14:59:26 +0100 (CET) Received: from geronimo.sdb.it (geronimo.sdb.it [10.101.1.20]) by mail.sdb.it (Postfix) with ESMTP id 49EC98129; Thu, 4 Nov 2010 14:59:26 +0100 (CET) Received: from mailtech.sdb.it (sdbit-srv01.sdb.it [10.118.122.250]) by geronimo.sdb.it (Postfix) with ESMTP id 7ABFF380F3A; Thu, 4 Nov 2010 14:59:16 +0100 (CET) Received: from [10.118.101.88] (silviob.sdb.it [10.118.101.88]) by mailtech.sdb.it (Postfix) with ESMTP id 30EDD58ABA; Thu, 4 Nov 2010 14:59:26 +0100 (CET) Message-ID: <4CD2BC3E.7030004@tech.sdb.it> Date: Thu, 04 Nov 2010 14:59:26 +0100 From: Silvio Brandani User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Kevin Grittner Cc: Scott Marlowe , pgsql-admin@postgresql.org Subject: Re: PANIC killing vacuum process References: <4CD1886C.5000503@tech.sdb.it> <4CD15B26020000250003720C@gw.wicourts.gov> In-Reply-To: <4CD15B26020000250003720C@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Private-Material: Please read notice X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/23 X-Sequence-Number: 35989 Kevin Grittner ha scritto: > Scott Marlowe wrote: > >> Silvio Brandani wrote: >> > > >>> we have develop a script to execute the vacuum full on all tables >>> > > >> Vacuum full is more of a recovery / offline command and is to be >> used sparingly, especially before 9.0. >> > > And before 9.0, most of the situations where you might reasonably > consider VACUUM FULL, you were better off with CLUSTER. > > >>> very big database , since it is a 24 x 7 available system we have >>> not a timeframe to exec the vacuum full. >>> >> Is there a reason you're avoiding autovacuum and tuning it to keep >> up? It's usually the better option. >> > > Even if you have a case for doing database vacuums during off-peak > hours, you should almost certainly use autovacuum with settings at > least as aggressive as the default. At our shop we configure > autovacuum more aggressively than the default, to keep our small, > volatile tables tidy, and run a vacuum of the entire database each > night (which is, by the way, a very different thing than a VACUUM > FULL). > > >>> PostgreSQL 8.3.1 on x86_64-redhat-linux-gnu >>> >> Is there a good reason for avoiding about two years of updates >> (8.3.latest has a lot of bug fixes.) >> > > Yeah, this is important. See this page: > > http://www.postgresql.org/support/versioning > > Many of those fixes to 8.3 after 8.3.1 were to vacuum or autovacuum. > You can poke around the release notes here: > > http://www.postgresql.org/docs/8.3/static/release.html > > If problems with autovacuum were what drove you toward VACUUM FULL, > you should update and try autovacuum again. Going from 8.3.1 to > 8.3.12 is pretty painless and very safe -- just read the release > notes for details on what types of indexes need to be rebuilt after > the update. (That probably won't affect you, but you should check.) > > -Kevin > > Thanks a lot. We will migrate to 8.3.12 and keep autovacuum running instead of vauum full. -- Silvio Brandani --- Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalitą amministrative e contabili, anche quando li comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi diritti, sono riportate alla pagina http://www.savinodelbene.com/privacy.html Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli eventuali allegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/privacy/codice_penale_616.html L'Azienda non si assume alcuna responsabilitą giuridica qualora pervengano da questo indirizzo messaggi estranei all'attivitą lavorativa o contrari a norme. --