Attached is my WIP patch for parallel pg_restore. It's still very rough, but seems to work.
Anyone who can test this with highend equipment would be helping some.
cheers
andrew