pgsql: Fix pg_restore so parallel restore doesn't fail when the input

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pg_restore so parallel restore doesn't fail when the input
Date: 2010-06-27 19:07:30
Message-ID: 20100627190730.582C57541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
pgsql/src/bin/pg_dump:
pg_backup_custom.c (r1.42 -> r1.42.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_backup_custom.c?r1=1.42&r2=1.42.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message User C2main 2010-06-27 19:36:56 slony1-ctl - slony-ctl: Continue work, slony upgrade scripts
Previous Message Tom Lane 2010-06-27 19:07:24 pgsql: Fix pg_restore so parallel restore doesn't fail when the input