From: Tom Lane <tgl@sss.pgh.pa.us>
To: al <al@blogmail.cc>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Trying to restore a PostgreSQL-9.6 database from an old complete dump and/or a up-to-date just base directory and other rescued files
Date: Thu, 20 Feb 2020 09:47:37 -0500
Message-ID: <6703.1582210057@sss.pgh.pa.us> (raw)
In-Reply-To: <2a83cbe8-952f-6623-1cf1-22e356d6288b@blogmail.cc>
References: <2a83cbe8-952f-6623-1cf1-22e356d6288b@blogmail.cc>
al <al@blogmail.cc> writes:
> Hello. I'm trying to restore/rescue a database from some that I have:
> * I have all the recent files in PGDATA/base
> (/var/lib/postgresql/9.6/main/base/), but I have not the complete
> /var/lib/postgresql/9.6/main/
> * I have all files from an old backup (and not much different) dump
> that I restored in a new installation of PostgreSQL-9.6.
> * I have a lot of rescued files from the hard drive (from ddrescue)
> and I got thousand of files without a name (having a "#" and then a
> number instead and in lost+found directory), so, for instance:
> * I have the pg_class file
> * I have the pg_clog directory with 0000 file
> I have not:
> * I have not the original content in pg_xlog directory (I have an
> old one, maybe, if it didn't changed, it still being useful)
Unfortunately, not having an up-to-date copy of the xlog info is
practically fatal to your hopes of getting back consistent data.
There are some Postgres support companies who specialize in data recovery;
if this data is worth money to you, go hire a specialist. The chance
of hacking your way to a usable fix without knowing exactly what you're
doing is nil. (A specialist might not be successful either, of course.)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, al@blogmail.cc
Subject: Re: Trying to restore a PostgreSQL-9.6 database from an old complete dump and/or a up-to-date just base directory and other rescued files
In-Reply-To: <6703.1582210057@sss.pgh.pa.us>
References: <2a83cbe8-952f-6623-1cf1-22e356d6288b@blogmail.cc> <6703.1582210057@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox