Re: Forensic recovery deleted pgdump custom format file

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Forensic recovery deleted pgdump custom format file
Дата
Msg-id CAB7nPqQq4FnXQ8xOAyMvoD_nYEC0f4DiNFEcAW5UbKoHgPcDKw@mail.gmail.com
обсуждение исходный текст
Ответ на Forensic recovery deleted pgdump custom format file  (David Guimaraes <skysbsb@gmail.com>)
Ответы Re: Forensic recovery deleted pgdump custom format file  (David Guimaraes <skysbsb@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: David Guimaraes
Дата:
Сообщение: Forensic recovery deleted pgdump custom format file
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: PostgreSQL 9.5 Alpha 1 build fail with perl 5.22