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
Include result relation info in direct modify ForeignScan nodes.
FDWs that can perform an UPDATE/DELETE remotely using the "direct modify"set of APIs need to access the ResultRelInfo of the target table. That'scurrently available in EState.es_result_relation_info, but the nextcommit will remove that field.This commit adds a new resultRelation field in ForeignScan, to store thetarget relation's RT index, and the corresponding ResultRelInfo inForeignScanState. The FDW's PlanDirectModify callback is expected to set'resultRelation' along with 'operation'. The core code doesn't need themfor anything, they are for the convenience of FDW's Begin- andIterateDirectModify callbacks.Authors: Amit Langote, Etsuro FujitaDiscussion:https://www.postgresql.org/message-id/CA%2BHiwqGEmiib8FLiHMhKB%2BCH5dRgHSLc5N5wnvc4kym%2BZYpQEQ%40mail.gmail.com