patched version of pg_shard for PPAS.