OSDN Git Service

Fix parallel pg_restore to handle comments on POST_DATA items correctly.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Feb 2011 18:11:45 +0000 (13:11 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Feb 2011 18:11:45 +0000 (13:11 -0500)
commit4cff100d7378b65ded116c5a9960584c351e5fa9
tree6ba23fcf7c2918572f9fb95e2303fab0e83e644b
parent472f608e436a41865b795c999bda3369725fa097
Fix parallel pg_restore to handle comments on POST_DATA items correctly.

The previous coding would try to process all SECTION_NONE items in the
initial sequential-restore pass, which failed if they were dependencies of
not-yet-restored items.  Fix by postponing such items into the parallel
processing pass once we have skipped any non-PRE_DATA item.

Back-patch into 9.0; the original parallel-restore coding in 8.4 did not
have this bug, so no need to change it.

Report and diagnosis by Arnd Hannemann.
src/bin/pg_dump/pg_backup_archiver.c