Fix pg_restore so parallel restore doesn't fail when the input file doesn't
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Jun 2010 19:07:30 +0000 (19:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Jun 2010 19:07:30 +0000 (19:07 +0000)
commit8c1f92c5c0335c880acacdd4324d73b502116296
treed27198e0e90b76413600d0bcda560a66b2d43cdd
parent263ac11379cca4306bd938977a90400f9cc7cb98
Fix pg_restore so parallel restore doesn't fail when the input file doesn't
contain data offsets (which it won't, if pg_dump thought its output wasn't
seekable).  To do that, remove an unnecessarily aggressive error check, and
instead fail if we get to the end of the archive without finding the desired
data item.  Also improve the error message to be more specific about the
cause of the problem.  Per discussion of recent report from Igor Neyman.

Back-patch to 8.4 where parallel restore was introduced.
src/bin/pg_dump/pg_backup_custom.c