X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EF097D832D for ; Thu, 13 Oct 2005 13:23:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42918-07 for ; Thu, 13 Oct 2005 16:23:51 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 05137D832A for ; Thu, 13 Oct 2005 13:23:50 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j9DGNiw07035; Thu, 13 Oct 2005 12:23:44 -0400 (EDT) From: Bruce Momjian Message-Id: <200510131623.j9DGNiw07035@candle.pha.pa.us> Subject: Re: Urgent! In-Reply-To: <1129220484.29961.191.camel@state.g2switchworks.com> To: Scott Marlowe Date: Thu, 13 Oct 2005 12:23:44 -0400 (EDT) Cc: codeWarrior , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 required=5 tests=[AWL=0.013] X-Spam-Level: X-Archive-Number: 200510/152 X-Sequence-Number: 19224 Scott Marlowe wrote: > On Thu, 2005-10-13 at 10:56, Bruce Momjian wrote: > > codeWarrior wrote: > > > Lookas as if you've managed to turn off your computer mid-transaction > > > thereby corrupting the postgreSQL commit logs (pg_clog)... > > > > > > You should never just turn off a database server... always shut it down > > > normally... Turning it off was a major mistake. I dont know if you can > > > recover or not as the system (postgreSQL) now thinks it is in the middle of > > > a transaction... > > > > PostgreSQL should never get corrupted by turning off the server. It > > isn't ideal to do that, but it should not get corrupted. > > Unless it is installed on hardware that lies about fsync. > > Which almost all ATA drives, parallel and serial, do, sadly. Ah, yes, that one. We do have a section in the 8.1 beta docs about that which will help in the future: http://candle.pha.pa.us/main/writings/pgsql/sgml/reliability.html -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073