Fix print of Path nodes when using OPTIMIZER_DEBUG

Michael Paquier <michael@paquier.xyz>

Commit: b33ef397a1698ddd06f325d0f92a6643ec55577f
Author: Michael Paquier <michael@paquier.xyz>
Date: 2018-07-19T00:54:39Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/optimizer/path/allpaths.c modified +19 −12

Discussion