[COMMITTERS] pgsql: Don't lock tables in RelationGetPartitionDispatchInfo.

2017-08-17 Thread Robert Haas
Don't lock tables in RelationGetPartitionDispatchInfo. Instead, lock them in the caller using find_all_inheritors so that they get locked in the standard order, minimizing deadlock risks. Also in RelationGetPartitionDispatchInfo, avoid opening tables which are not partitioned; there's no need. A

[COMMITTERS] pgsql: Don't lock tables in RelationGetPartitionDispatchInfo.

2017-08-17 Thread Robert Haas
Don't lock tables in RelationGetPartitionDispatchInfo. Instead, lock them in the caller using find_all_inheritors so that they get locked in the standard order, minimizing deadlock risks. Also in RelationGetPartitionDispatchInfo, avoid opening tables which are not partitioned; there's no need. A