On Tue, Jul 14, 2015 at 9:28 AM, David Guimaraes <[email protected]> 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 -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
