Tom, Andrew,
>> Well, we certainly want to be able to run CREATE INDEXes in parallel,
>> so this would appear to require hard-wiring some conception of shared
>> versus exclusive lock into pg_restore. I think it might be a bit late
>> to consider that for 8.4.
>
>
> I'm pretty sure I had the logic for this correct stuff originally, so
> I'm going to go back and check that.
FWIW, I've tested 3 moderately complex databases with this, and the
locking issue happens on every one. As a result, getting more than 3
cores of scalability on any fairly complex DB isn't possible without
fixing this.
--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com