Re: Re: Backup and Recovery - Mailing list pgsql-hackers

From ncm@zembu.com (Nathan Myers)
Subject Re: Re: Backup and Recovery
Date
Msg-id 20010709135432.A23310@store.zembu.com
Whole thread Raw
In response to Re: Re: Backup and Recovery  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Fri, Jul 06, 2001 at 06:52:49AM -0400, Bruce Momjian wrote:
> Nathan wrote:
> > How hard would it be to turn these row records into updates against a 
> > pg_dump image, assuming access to a good table-image file?
> 
> pg_dump is very hard because WAL contains only tids.  No way to match
> that to pg_dump-loaded rows.

Maybe pg_dump can write out a mapping of TIDs to line numbers, and the
back-end can create a map of inserted records' line numbers when the dump 
is reloaded, so that the original TIDs can be traced to the new TIDs.
I guess this would require a new option on IMPORT.  I suppose the
mappings could be temporary tables.

Nathan Myers
ncm@zembu.com


pgsql-hackers by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: grant and SQL92
Next
From: Bruce Momjian
Date:
Subject: Re: Improving pg_hba.conf