Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by postgresql.org (Postfix) with ESMTP id 573B4474E44 for ; Sat, 13 Jul 2002 09:39:28 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 17TN7J-000ETh-0Y; Sat, 13 Jul 2002 14:39:21 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 17TNCY-0006ZY-00; Sat, 13 Jul 2002 14:44:46 +0100 Subject: Re: Corrupted Database From: Oliver Elphick To: Martin Kuria Cc: owe.kristiansen@norgit.no, pgsql-admin@postgresql.org, webmaster@can-host.com, cobalt-developers@list.cobalt.com, tgl@sss.pgh.pa.us, bryan@arcamax.com, kaygee@netset.com, allan@itsolutions.co.za, Mtanoviceanu@Soundbreak.com, keithmur@mindspring.com, ljcq@beane.sc.uevora.pt, lockhart@alumni.caltech.edu, php-dev@lists.php.net, mgeier@cdmsports.com, gena@rt.mipt.ru In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 13 Jul 2002 14:44:45 +0100 Message-Id: <1026567886.15864.119.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200207/192 X-Sequence-Number: 4878 On Sat, 2002-07-13 at 12:51, Martin Kuria wrote: > Hi, my linux machine crushed and my postgresql 6.5 database was corrupted. > > I have /var/lib/pgsql/data intact, When I reinstalled Linux in a new > machine, Can I copy this directory back in the new postgresql database, and > will it work, because I have tried to do that but it did not work. > > Note: I had not backed my data so no pg_dump done , how else can I recover > the data please do advice, I have /var/lib/pgsql/data directory which > contains the databases, but how do I make the databases work please do > assist thanks again You must install a copy of PostgreSQL 6.5 to match your database. Later versions of PostgreSQL will not work with it. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Let your character be free from the love of money, being content with what you have; for He Himself has said, "I will never desert you, nor will I ever forsake you." Hebrews 13:5