Re: pg_rawdump

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Roberto Mello <roberto(dot)mello(at)gmail(dot)com>, Aidan Van Dyk <aidan(at)highrise(dot)ca>, Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_rawdump
Date: 2010-10-21 22:57:41
Message-ID: AANLkTikTUikHY_e7zL9Pi4dYwTYfFXFk8E6L52zozH7H@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 21, 2010 at 5:21 PM, Kevin Grittner
<Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> Most of the data-loss reports I've seen appeared to come from
>> people who wouldn't be capable of doing such recovery work even if
>> better tools were available.
>
> No doubt; but the recovery work often winds up in the hands of
> people with more skills than those responsible for the loss.
> Whoever comes in to help with recovery is looking for every bit of
> traction they can get.  You'd be amazed at some of the odd straws
> people can grasp to help recover data.
>
> I don't know how big the special area is, but if enough room could
> be carved out to include even the relation ID or filename, it might
> be a big help to someone.  I'm pretty skeptical about including
> information about attributes, though.

Unfortunately, the use case for the relation ID or filename is much
thinner than the case for the column definitions. You're less likely
to lose that information, and if you do lose it you can probably guess
by file size or by running strings on the data files. The really hard
thing is to remember just exactly what columns you had in there, in
what order... and oh yeah there was that column we dropped. But like
you, I'm pretty dubious about trying to store all that stuff.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2010-10-21 23:01:08 Re: crash in plancache with subtransactions
Previous Message Mark Kirkwood 2010-10-21 22:55:47 Re: Simplifying replication