Be more user-friendly about unsupported cases for parallel pg_restore.
authorTom Lane <[email protected]>
Mon, 29 Aug 2011 01:48:58 +0000 (21:48 -0400)
committerTom Lane <[email protected]>
Mon, 29 Aug 2011 01:49:10 +0000 (21:49 -0400)
commit76d8bd8b906ddc27e4aee4b92b3f82e896b7e926
treef08f311b8bf59b78620b33a4edf0c006ecfdef11
parent5f81cf34e3e45ae4d464618c0b61914a60282aba
Be more user-friendly about unsupported cases for parallel pg_restore.

If we are unable to do a parallel restore because the input file is stdin
or is otherwise unseekable, we should complain and fail immediately, not
after having done some of the restore.  Complaining once per thread isn't
so cool either, and the messages should be worded to make it clear this is
an unsupported case not some weird race-condition bug.  Per complaint from
Lonni Friedman.

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