]> granicus.if.org Git - postgresql/commitdiff
Fix another oversight in CustomScan patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Nov 2014 19:49:02 +0000 (14:49 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Nov 2014 19:49:02 +0000 (14:49 -0500)
disuse_physical_tlist() must work for all plan types handled by
create_scan_plan().

src/backend/optimizer/plan/createplan.c

index 8d9237ccac44dffbab0b7906cf6b55ce762eb20d..0a85cd990618a113f6d14047eef2bf38f3fc773b 100644 (file)
@@ -553,6 +553,7 @@ disuse_physical_tlist(PlannerInfo *root, Plan *plan, Path *path)
                case T_CteScan:
                case T_WorkTableScan:
                case T_ForeignScan:
+               case T_CustomScan:
                        plan->targetlist = build_path_tlist(root, path);
                        break;
                default: