Re: Forensic recovery deleted pgdump custom format file - Mailing list pgsql-hackers

From David Guimaraes
Subject Re: Forensic recovery deleted pgdump custom format file
Date
Msg-id CAJNfudLhjWw-6=D6U9b-zAqDOF6DmGYEnNiGWHHXihfTCLqhgw@mail.gmail.com
Whole thread
In response to Re: Forensic recovery deleted pgdump custom format file  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Forensic recovery deleted pgdump custom format file
List pgsql-hackers

The backups were deleted. I need them to use pg_restore.

Em 13/07/2015 21:18, "Michael Paquier" <michael.paquier@gmail.com> escreveu:
On Tue, Jul 14, 2015 at 9:28 AM, David Guimaraes <skysbsb@gmail.com> wrote:
> So I decided to try to understand the file format generated by
> pgdump. Analyzing the source code of pgdump/recovery, i concluded a few
> things:
>
> The header of the file always starts with "PGDMP" followed by pgdump version
> number used, followed by int size, offset, etc. followed by TOCs.
>
> My question is how to know the end of the file? Are there any signature that
> I can use? Or would have to analyze the whole file?

Why are you trying to reinvent the wheel? pg_restore is not available?
--
Michael

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Support for N synchronous standby servers - take 2
Next
From: Michael Paquier
Date:
Subject: Re: Forensic recovery deleted pgdump custom format file