]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Be more user-friendly about unsupported cases for parallel pg_restore.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Aug 2011 01:48:58 +0000 (21:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Aug 2011 01:49:21 +0000 (21:49 -0400)
commitfbf776a2eb5a7dcca218458cb2139b97918382d5
tree45e2c8dea8b8be57fa363ad37e932daafef70861
parent42de04f6ae051c509c217fe527285a59d5a7314d
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