Skip to content
Snippets Groups Projects
Commit 164ed153 authored by Michael Paquier's avatar Michael Paquier
Browse files

Fix print of Path nodes when using OPTIMIZER_DEBUG

GatherMergePath (introduced in 10) and CustomPath (introduced in 9.5)
have gone missing.  The order of the Path nodes was inconsistent with
what is listed in nodes.h, so make the order consistent at the same time
to ease future checks and additions.

Author: Sawada Masahiko
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/CAD21AoBQMLoc=ohH-oocuAPsELrmk8_EsRJjOyR8FQLZkbE0wA@mail.gmail.com
parent 75459bc4
No related branches found
Tags
No related merge requests found
...@@ -2958,6 +2958,21 @@ print_path(PlannerInfo *root, Path *path, int indent) ...@@ -2958,6 +2958,21 @@ print_path(PlannerInfo *root, Path *path, int indent)
case T_ForeignPath: case T_ForeignPath:
ptype = "ForeignScan"; ptype = "ForeignScan";
break; break;
case T_CustomPath:
ptype = "CustomScan";
break;
case T_NestPath:
ptype = "NestLoop";
join = true;
break;
case T_MergePath:
ptype = "MergeJoin";
join = true;
break;
case T_HashPath:
ptype = "HashJoin";
join = true;
break;
case T_AppendPath: case T_AppendPath:
ptype = "Append"; ptype = "Append";
break; break;
...@@ -3028,18 +3043,6 @@ print_path(PlannerInfo *root, Path *path, int indent) ...@@ -3028,18 +3043,6 @@ print_path(PlannerInfo *root, Path *path, int indent)
ptype = "Limit"; ptype = "Limit";
subpath = ((LimitPath *) path)->subpath; subpath = ((LimitPath *) path)->subpath;
break; break;
case T_NestPath:
ptype = "NestLoop";
join = true;
break;
case T_MergePath:
ptype = "MergeJoin";
join = true;
break;
case T_HashPath:
ptype = "HashJoin";
join = true;
break;
default: default:
ptype = "???Path"; ptype = "???Path";
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment