Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eekX8-000830-0j for pgsql-admin@arkaria.postgresql.org; Thu, 25 Jan 2018 16:37:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eekX7-0003fy-FI for pgsql-admin@arkaria.postgresql.org; Thu, 25 Jan 2018 16:37:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eekX7-0003fp-8a for pgsql-admin@lists.postgresql.org; Thu, 25 Jan 2018 16:37:49 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eekX4-0001Nw-7S for pgsql-admin@lists.postgresql.org; Thu, 25 Jan 2018 16:37:48 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 1716242A2B; Thu, 25 Jan 2018 17:37:44 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id QXUY91HQ6NPt; Thu, 25 Jan 2018 17:37:38 +0100 (CET) Message-ID: <1516898257.2599.17.camel@cybertec.at> Subject: Re: Check for logical / physical corruption From: Laurenz Albe To: flumbador@virgilio.it, pgsql-admin@lists.postgresql.org Date: Thu, 25 Jan 2018 17:37:37 +0100 In-Reply-To: <153589807.1971336.1516883440396@mail.virgilio.it> References: <153589807.1971336.1516883440396@mail.virgilio.it> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk flumbador@virgilio.it wrote: > I need to check that my database has not physical / logical corruption. > I think that "vacuumdb -all -freeze -analyze" will do this for me. > Am I right? > Are there other command / utility that I should do to check corruptions? The only good test is to run a pg_dumpall and restore the dump into a new PostgreSQL cluster. Yours, Laurenz Albe