X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3B4DFD1B49B for ; Fri, 5 Dec 2003 06:56:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 98249-05 for ; Fri, 5 Dec 2003 02:56:27 -0400 (AST) Received: from jupiter.milkyway.org (p15.3c04.pm.dimcom.net [206.124.3.175]) by svr1.postgresql.org (Postfix) with ESMTP id 0BC95D1B48B for ; Fri, 5 Dec 2003 02:56:25 -0400 (AST) Received: from dim.com (jtc@localhost) by jupiter.milkyway.org (8.11.6/8.11.6) with ESMTP id hB57EXF29373 for ; Fri, 5 Dec 2003 00:14:35 -0700 Message-Id: <200312050714.hB57EXF29373@jupiter.milkyway.org> X-Authentication-Warning: jupiter.milkyway.org: jtc owned process doing -bs To: pgsql-admin@postgresql.org Subject: Postrgres data restoration problem Date: Fri, 05 Dec 2003 00:14:33 -0700 From: Jim Cochrane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/49 X-Sequence-Number: 11557 I'm looking for help restoring old postgres databases on a linux system after a reinstall of Redhat (including posgresql). It's the same version of redhat and of postgres I was using before the resinstall, but I've not been able to get the database server to see the old databases. The old data is stored in the standard postgres format. (No, unfortunately, I did not have a backup.) The postgres data is located on my system under /var/lib/pgsql. So I tried both creating a symbolic link - setting up /var/lib/pgsql/data as a symbolic link to /oldpgsqlpath/data, and, when that didn't work, I just copied the old data directory to /var/lib/pgsql (that is, it ended up residing in /var/lib/pgsql/data), which didn't work either: I was able to connect to an old database (e.g., with psql dbname), but when I listed the tables with \d, it responds with: No relations found. I suspect that the data may be unrecoverable. Is my pessimism justified or might there be a way (without spending days, that is) to recover the old data? Thanks very much! Jim Cochrane