digraph { graph [rankdir = "LR", label = "Plan Tree: SELECT C2 FROM testtable1 ORDER BY C1;"] node [shape=record,style=filled,fillcolor=gray95] edge [arrowtail=empty] 2[label = " Sort (2)|startup_cost: 823.62|total_cost: 849.04|plan_rows: 10170|plan_width: 8| targetlist: | lefttree: |extParam: (b)|allParam: (b)|numCols: 1|sortColIdx: 2|sortOperators: 97|collations: 0|nullsFirst: false"] 16[label = " Alias (16)|aliasname: testtable1| colnames: "] 18[label = " String (18)|c1"] 17[label = " List (17)|<1> [0]|<2> [1]"] 19[label = " String (19)|c2"] 15[label = " RangeTblEntry(RTE) (15)|rtekind: RTE_RELATION|relid: 16537|relkind: 114| eref: |lateral: false|inh: false|inFromCl: true|requiredPerms: 2|selectedCols: (b 9 10)|insertedCols: (b)|updatedCols: (b)"] 8[label = " SeqScan (8)|startup_cost: 0.00|total_cost: 146.70|plan_rows: 10170|plan_width: 8| targetlist: |extParam: (b)|allParam: (b)|scanrelid: 1"] 1[label = " PlannedStmt (1)|commandType: CMD_SELECT|queryId: 0|hasReturning: false|hasModifyingCTE: false|canSetTag: true|transientPlan: false| planTree: | rtable: |rewindPlanIDs: (b)| relationOids: |nParamExec: 0|hasRowSecurity: false"] 14[label = " List (14)|<1> [0]"] 20[label = " OidList (20)|16537 "] 2:lefttree -> 8:head [headlabel = "2", taillabel = "8"] 2:targetlist -> 3:head [headlabel = "2", taillabel = "3"] 16:colnames -> 17:head [headlabel = "16", taillabel = "17"] 17:1 -> 18:head [headlabel = "17", taillabel = "18"] 17:2 -> 19:head [headlabel = "17", taillabel = "19"] 15:eref -> 16:head [headlabel = "15", taillabel = "16"] 8:targetlist -> 9:head [headlabel = "8", taillabel = "9"] 1:planTree -> 2:head [headlabel = "1", taillabel = "2"] 1:rtable -> 14:head [headlabel = "1", taillabel = "14"] 1:relationOids -> 20:head [headlabel = "1", taillabel = "20"] 14:1 -> 15:head [headlabel = "14", taillabel = "15"] subgraph cluster_0 { label = "Target List"; 10[label = " TargetEntry (10)| expr: |resno: 1|resname: c2|resorigtbl: 16537|resorigcol: 2|resjunk: false"] 12[label = " TargetEntry (12)| expr: |resno: 2|ressortgroupref: 1|resjunk: true"] 11[label = " Var (11)|varno: 1|varattno: 2|vartype: 23|vartypmod: -1|varlevelsup: 0|varnoold: 1|varoattno: 2|location: 7"] 9[label = " List (9)|<1> [0]|<2> [1]"] 13[label = " Var (13)|varno: 1|varattno: 1|vartype: 23|vartypmod: -1|varlevelsup: 0|varnoold: 1|varoattno: 1|location: 35"] 10:expr -> 11:head [headlabel = "10", taillabel = "11"] 12:expr -> 13:head [headlabel = "12", taillabel = "13"] 9:1 -> 10:head [headlabel = "9", taillabel = "10"] 9:2 -> 12:head [headlabel = "9", taillabel = "12"] } subgraph cluster_1 { label = "Target List"; 5[label = " Var (5)|varno: OUTER_VAR|varattno: 1|vartype: 23|vartypmod: -1|varlevelsup: 0|varnoold: 1|varoattno: 2"] 4[label = " TargetEntry (4)| expr: |resno: 1|resname: c2|resorigtbl: 16537|resorigcol: 2|resjunk: false"] 3[label = " List (3)|<1> [0]|<2> [1]"] 7[label = " Var (7)|varno: OUTER_VAR|varattno: 2|vartype: 23|vartypmod: -1|varlevelsup: 0|varnoold: 1|varoattno: 1"] 6[label = " TargetEntry (6)| expr: |resno: 2|ressortgroupref: 1|resjunk: true"] 4:expr -> 5:head [headlabel = "4", taillabel = "5"] 3:1 -> 4:head [headlabel = "3", taillabel = "4"] 3:2 -> 6:head [headlabel = "3", taillabel = "6"] 6:expr -> 7:head [headlabel = "6", taillabel = "7"] } }