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
Re-allow FDWs and custom scan providers to replace joins with pseudoconstant quals.
This was disabled in commit6f80a8d due to the lack of support forhandling of pseudoconstant quals assigned to replaced joins increateplan.c. To re-allow it, this patch adds the support by 1)modifying the ForeignPath and CustomPath structs so that if theyrepresent foreign and custom scans replacing a join with a scan, theystore the list of RestrictInfo nodes to apply to the join, as inJoinPaths, and by 2) modifying create_scan_plan() in createplan.c sothat it uses that list in that case, instead of the baserestrictinfolist, to get pseudoconstant quals assigned to the join, as mentioned inthe commit message for that commit.Important item for the release notes: this is non-backwards-compatiblesince it modifies the ForeignPath and CustomPath structs, as mentionedabove, and changes the argument lists for FDW helper functionscreate_foreignscan_path(), create_foreign_join_path(), andcreate_foreign_upper_path().Richard Guo, with some additional changes by me, reviewed by NishantSharma, Suraj Kharage, and Richard Guo.Discussion:https://postgr.es/m/CADrsxdbcN1vejBaf8a%2BQhrZY5PXL-04mCd4GDu6qm6FigDZd6Q%40mail.gmail.com