* forcePartitionRootLoad * Check if we must force load_via_partition_root for this partition. * * This is required if any level of ancestral partitioned table has an * unsafe partitioning scheme. */
| 2750 | * unsafe partitioning scheme. |
| 2751 | */ |
| 2752 | static bool |
| 2753 | forcePartitionRootLoad(const TableInfo *tbinfo) |
| 2754 | { |
| 2755 | TableInfo *parentTbinfo; |
| 2756 | |
| 2757 | Assert(tbinfo->ispartition); |
| 2758 | Assert(tbinfo->numParents == 1); |
| 2759 | |
| 2760 | parentTbinfo = tbinfo->parents[0]; |
| 2761 | if (parentTbinfo->unsafe_partitions) |
| 2762 | return true; |
| 2763 | while (parentTbinfo->ispartition) |
| 2764 | { |
| 2765 | Assert(parentTbinfo->numParents == 1); |
| 2766 | parentTbinfo = parentTbinfo->parents[0]; |
| 2767 | if (parentTbinfo->unsafe_partitions) |
| 2768 | return true; |
| 2769 | } |
| 2770 | |
| 2771 | return false; |
| 2772 | } |
| 2773 | |
| 2774 | /* |
| 2775 | * dumpTableData - |
no outgoing calls
no test coverage detected