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

From Michael Paquier
Subject Re: Forensic recovery deleted pgdump custom format file
Date
Msg-id CAB7nPqQq4FnXQ8xOAyMvoD_nYEC0f4DiNFEcAW5UbKoHgPcDKw@mail.gmail.com
Whole thread Raw
In response to Forensic recovery deleted pgdump custom format file  (David Guimaraes <skysbsb@gmail.com>)
Responses Re: Forensic recovery deleted pgdump custom format file
List pgsql-hackers
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: David Guimaraes
Date:
Subject: Forensic recovery deleted pgdump custom format file
Next
From: Andrew Dunstan
Date:
Subject: Re: PostgreSQL 9.5 Alpha 1 build fail with perl 5.22