DO NOT MERGE INTO MASTER - PGIA WIP

Fixes bugs with inclusive/exclusive partition constraints, and partition
constraint generation. Add more logging. Make it use multiple threads.

Seems to work for a few cases, but still not sure. Overhead makes it
much slower than sequential.

Pushing only for safekeeping.

[ci skip]