Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C50481337B3E for ; Wed, 3 Nov 2010 14:00:13 -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 36795-02 for ; Wed, 3 Nov 2010 17:00:06 +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 4F6701335B36 for ; Wed, 3 Nov 2010 14:00:06 -0300 (ADT) Received: by mail.sdb.it (Postfix, from userid 500) id B8A148096; Wed, 3 Nov 2010 18:00:05 +0100 (CET) Received: from geronimo.sdb.it (geronimo.sdb.it [10.101.1.20]) by mail.sdb.it (Postfix) with ESMTP id B05248096; Wed, 3 Nov 2010 18:00:05 +0100 (CET) Received: from mailtech.sdb.it (sdbit-srv01.sdb.it [10.118.122.250]) by geronimo.sdb.it (Postfix) with ESMTP id 5361C3808C6; Wed, 3 Nov 2010 17:59:54 +0100 (CET) Received: from [10.118.101.88] (silviob.sdb.it [10.118.101.88]) by mailtech.sdb.it (Postfix) with ESMTP id 8ABC758ABA; Wed, 3 Nov 2010 18:00:05 +0100 (CET) Message-ID: <4CD19515.5010301@tech.sdb.it> Date: Wed, 03 Nov 2010 18:00:05 +0100 From: Silvio Brandani User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Kevin Grittner Cc: pgsql-admin@postgresql.org Subject: Re: PANIC killing vacuum process References: <4CD1886C.5000503@tech.sdb.it> <4CD1476302000025000371FC@gw.wicourts.gov> In-Reply-To: <4CD1476302000025000371FC@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/18 X-Sequence-Number: 35984 Kevin Grittner ha scritto: > Silvio Brandani wrote: > > >> we have develop a script to execute the vacuum full on all tables >> of our very big database , since it is a 24 x 7 available system >> we have not a timeframe to exec the vacuum full. >> so we try with this script running the vauum full table by table >> and if the vacuum generate the waiting status for other >> connections we kill the vacuum . >> But we encounter following problem: >> with kill command: >> >> 2010-11-03 14:25:27 CET [19324]: [4-1] FATAL: terminating >> connection due to administrator command >> 2010-11-03 14:25:27 CET [19324]: [5-1] STATEMENT: vacuum full >> analyze verbose tracking.as_history_status ; >> 2010-11-03 14:25:27 CET [19324]: [6-1] PANIC: cannot abort >> transaction 75073917, it was already committed >> >> with pg_cancel_backend(pid) command: >> >> CPU 0.18s/0.26u sec elapsed 3.79 sec. >> ERROR: canceling statement due to user request >> PANIC: cannot abort transaction 75081452, it was already >> committed server closed the connection unexpectedly >> This probably means the server terminated abnormally >> before or while processing the request. >> The connection to the server was lost. Attempting reset: Failed. >> !> quit >> -> \q >> >> the server crash and we have a service unavailiability on our >> production system. >> > > What version of PostgreSQL is this? > > >> Is it possible to softly kill a vacuum process without risk a >> panic ????? >> > > Normally, yes. VACUUM FULL is more prone to problems than a normal > vacuum, especially if you are using an old version. There are very > few circumstances where VACUUM FULL is the right thing to use. > > Have you recovered your database yet? If so how? (Restart, PITR > backup, pg_dump output, etc.) > > -Kevin > > We had to kill the postmaster and restart the database recovering it. thanks -- 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. --