From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jan Wieck <jwieck(at)debis(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, bkruger(at)mindspring(dot)com, pgsql-admin(at)postgreSQL(dot)org, pgsql-general(at)postgreSQL(dot)org, pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [ADMIN] Re: [SQL] Data recovery |
Date: | 1999-06-01 17:28:39 |
Message-ID: | 199906011728.NAA01606@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
> > If you only have the data/base subdirectory, you will need to work
> > harder; you'll have to regenerate the top-level files. I think if you
> > get pg_shadow and pg_database right you will be OK. First, install and
> > initdb to get a basic set of files. You will need to recall the old set
> > of users (including their userIDs) in order to reconstruct pg_shadow.
> > After you've done the createusers, issue a createdb for each old
> > database (subdirectory of base/) so that they have entries in
> > pg_database. Then, shut down the postmaster, blow away the contents of
> > the base/ subdirectory and restore it from tape, and restart. I think
> > it'll work...
> >
> > In any case it's critical to install the same Postgres version you
> > were using.
>
> NO - this cannot work. He surely needs the entire data
> directory because the information in the heap's relies on the
> bits in data/pg_log. And that info (which XID's are
> committed and which not) cannot be reconstructed from the
> files - no chance.
Very, very hard, but not impossible. If you update a row, and do a
select on that row, the select updates the transaction status so the
next select doesn't need to look at the pg_log table. What this means
is that pg_log could probably be reconstructed from existing data, with
just 'unselected' changes not appearing properly.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 1999-06-01 18:09:15 | Re: [GENERAL] RE: [PORTS] AIX-4.2.1 binaries ? more info. PLEASE ! |
Previous Message | Jan Wieck | 1999-06-01 17:15:18 | Re: [ADMIN] Re: [SQL] Data recovery |
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 1999-06-01 19:01:39 | Re: [ADMIN] Re: [SQL] Data recovery |
Previous Message | Jan Wieck | 1999-06-01 17:15:18 | Re: [ADMIN] Re: [SQL] Data recovery |