You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Generalize ri_RootToPartitionMap to use for non-partition children
ri_RootToPartitionMap is currently only initialized for tuple routingtarget partitions, though a future commit will need the ability to useit even for the non-partition child tables, so make adjustments to thedecouple it from the partitioning code.Also, make it lazily initialized via ExecGetRootToChildMap(), makingthat function its preferred access path. Existing third-party codeaccessing it directly should no longer do so; consequently, it's beenrenamed to ri_RootToChildMap, which also makes it consistent withri_ChildToRootMap.ExecGetRootToChildMap() houses the logic of setting the map appropriatelydepending on whether a given child relation is partition or not.To support this, also add a separate entry point for TupleConversionMapcreation that receives an AttrMap. No new code here, just split anexisting function in two.Author: Amit Langote <amitlangote09@gmail.com>Discussion:https://postgr.es/m/CA+HiwqEYUhDXSK5BTvG_xk=eaAEJCD4GS3C6uH7ybBvv+Z_Tmg@mail.gmail.com