Re: [ADMIN] pg_restore on windows with pipe

2011-03-31 Thread French, Martin
Ravi, To (attempt to) answer your questions: 1) does the custom archive format of pg_dump needs to be in a file (not pipe) for the pg_restore to seek back forth ? Not to my knowledge. I suspect that the windows type command is adding extra header information to the file before

Re: [ADMIN] pg_restore on windows with pipe

2011-03-30 Thread French, Martin
...@postgresql.org] On Behalf Of Kevin Grittner Sent: 29 March 2011 18:41 To: Ravi Thati; pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_restore on windows with pipe Ravi Thati gototh...@gmail.com wrote: type C:\testdump | pg_restore -Fc [...] pg_restore: [custom archiver] *could not find block

Re: [ADMIN] pg_restore on windows with pipe

2011-03-30 Thread Ravi Thati
the form sometimes. M -Original Message- From: pgsql-admin-ow...@postgresql.org [mailto:pgsql-admin-ow...@postgresql.org] On Behalf Of Kevin Grittner Sent: 29 March 2011 18:41 To: Ravi Thati; pgsql-admin@postgresql.org Subject: Re: [ADMIN] pg_restore on windows with pipe Ravi Thati

[ADMIN] pg_restore on windows with pipe

2011-03-29 Thread Ravi Thati
Hi All, I am trying to restore a dump (custom archive format) using pg_restore like this: type C:\testdump | pg_restore -Fc -C -U postgres -w -d postgres where testdump contains the database dump from the following commmand: pg_dump -U postgres -Fc test C:\testdump *the restore command

Re: [ADMIN] pg_restore on windows with pipe

2011-03-29 Thread Kevin Grittner
Ravi Thati gototh...@gmail.com wrote: type C:\testdump | pg_restore -Fc [...] pg_restore: [custom archiver] *could not find block ID 1770* in archive -- possibly corrupt archive pg_restore: *** aborted because of error Does the type command treat the stream as characters? (You could try