Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 05D759FA646 for ; Thu, 2 Nov 2006 18:50:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 96688-08 for ; Thu, 2 Nov 2006 22:50:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 9B1AA9FA5F0 for ; Thu, 2 Nov 2006 18:50:20 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 3C0F8308EA; Thu, 2 Nov 2006 23:50:19 +0100 (MET) From: Chris Browne X-Newsgroups: pgsql.sql Subject: Re: Database recovery in postgres 7.2.4. Date: Thu, 02 Nov 2006 17:41:46 -0500 Organization: cbbrowne Computing Inc Lines: 42 Message-ID: <60wt6dh3o5.fsf@dba2.int.libertyrms.com> References: <1162139808.031657.23340@f16g2000cwb.googlegroups.com> <1162203909.082487.192540@m7g2000cwm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:k1J5I4Ozh/OBItC3MagrHIGHbcM= To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.088 tagged_above=0 required=5 tests=BAYES_40, INFO_TLD X-Spam-Level: * X-Archive-Number: 200611/23 X-Sequence-Number: 26675 "Santosh" writes: > Hi All. > > My setup is as follows: > OS: Sun Solaris 5.8. > Postgres: 7.2.4 > > I have very large database, which contain 15 tables and each table is > contain more than 10,00,000 records. > > My application is parsing text data files and inserting records into > database. > > When this process was running last night, machine was got down because > of power failure. > > Today when I come back to office and I have compaired record count in > data files and in database and find that some records are missing in > database. > > Then I have checked postgres log and found log similar to as follows: > ================================= > DEBUG: The DataBase system was not properly shut down > Automatic recovery is in progress... > DEBUG: Redo starts at (0, 1064) > ================================= > > I have read some WAL related stuff on postgres site but not found any > solution to recover those uncommited records. > > Can any one tell me how to recover those missing records? If they were not committed, then there is no way to do so. Uncommitted work is properly discarded when the database is brought back online. -- let name="cbbrowne" and tld="linuxfinances.info" in name ^ "@" ^ tld;; http://linuxdatabases.info/info/sgml.html "I've seen a look in dogs' eyes, a quickly vanishing look of amazed contempt, and I am convinced that basically dogs think humans are nuts." -- John Steinbeck