Don't try to trim "../" in join_path_components().
Don't try to trim "../" in join_path_components().

join_path_components() tried to remove leading ".." components from its
tail argument, but it was not nearly bright enough to do so correctly
unless the head argument was (a) absolute and (b) canonicalized.
Rather than try to fix that logic, let's just get rid of it: there is no
correctness reason to remove "..", and cosmetic concerns can be taken
care of by a subsequent canonicalize_path() call.  Per bug #6715 from
Greg Davidson.

Back-patch to all supported branches.  It appears that pre-9.2, this
function is only used with absolute paths as head arguments, which is why
we'd not noticed the breakage before.  However, third-party code might be
expecting this function to work in more general cases, so it seems wise
to back-patch.

In HEAD and 9.2, also make some minor cosmetic improvements to callers.

xuegang/gpdb,Quikling/gpdb,Chibin/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,janebeckman/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,lisakowen/gpdb,CraigHarris/gpdb,Quikling/gpdb,rvs/gpdb,cjcjameson/gpdb,xuegang/gpdb,yuanzhao/gpdb,lisakowen/gpdb,CraigHarris/gpdb,zaksoup/gpdb,Chibin/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,rvs/gpdb,Chibin/gpdb,edespino/gpdb,adam8157/gpdb,Quikling/gpdb,jmcatamney/gpdb,chrishajas/gpdb,edespino/gpdb,adam8157/gpdb,cjcjameson/gpdb,lisakowen/gpdb,cjcjameson/gpdb,edespino/gpdb,rvs/gpdb,lisakowen/gpdb,ahachete/gpdb,kaknikhil/gpdb,Quikling/gpdb,ashwinstar/gpdb,lintzc/gpdb,adam8157/gpdb,adam8157/gpdb,chrishajas/gpdb,kaknikhil/gpdb,chrishajas/gpdb,zaksoup/gpdb,Chibin/gpdb,yuanzhao/gpdb,royc1/gpdb,janebeckman/gpdb,lisakowen/gpdb,edespino/gpdb,0x0FFF/gpdb,royc1/gpdb,greenplum-db/gpdb,ahachete/gpdb,xuegang/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,janebeckman/gpdb,chrishajas/gpdb,edespino/gpdb,0x0FFF/gpdb,janebeckman/gpdb,chrishajas/gpdb,jmcatamney/gpdb,xinzweb/gpdb,jmcatamney/gpdb,Quikling/gpdb,50wu/gpdb,Chibin/gpdb,ashwinstar/gpdb,Quikling/gpdb,yuanzhao/gpdb,xinzweb/gpdb,xuegang/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,lintzc/gpdb,zaksoup/gpdb,janebeckman/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,rvs/gpdb,adam8157/gpdb,cjcjameson/gpdb,50wu/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,lintzc/gpdb,jmcatamney/gpdb,Quikling/gpdb,edespino/gpdb,greenplum-db/gpdb,Chibin/gpdb,xinzweb/gpdb,xinzweb/gpdb,yuanzhao/gpdb,50wu/gpdb,rvs/gpdb,rvs/gpdb,Quikling/gpdb,ahachete/gpdb,adam8157/gpdb,xuegang/gpdb,rvs/gpdb,adam8157/gpdb,adam8157/gpdb,lintzc/gpdb,edespino/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,Quikling/gpdb,CraigHarris/gpdb,50wu/gpdb,janebeckman/gpdb,50wu/gpdb,lisakowen/gpdb,xuegang/gpdb,ashwinstar/gpdb,chrishajas/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,lisakowen/gpdb,zaksoup/gpdb,jmcatamney/gpdb,Chibin/gpdb,xuegang/gpdb,Chibin/gpdb,edespino/gpdb,ahachete/gpdb,yuanzhao/gpdb,xuegang/gpdb,lintzc/gpdb,lintzc/gpdb,CraigHarris/gpdb,royc1/gpdb,janebeckman/gpdb,rvs/gpdb,chrishajas/gpdb,xinzweb/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,ahachete/gpdb,Chibin/gpdb,rvs/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Chibin/gpdb,Quikling/gpdb,xinzweb/gpdb,royc1/gpdb,kaknikhil/gpdb,50wu/gpdb,ahachete/gpdb,janebeckman/gpdb,lintzc/gpdb,kaknikhil/gpdb,50wu/gpdb,zaksoup/gpdb,ahachete/gpdb,zaksoup/gpdb,royc1/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,royc1/gpdb,lintzc/gpdb,ashwinstar/gpdb,xinzweb/gpdb,rvs/gpdb,ahachete/gpdb,edespino/gpdb,xinzweb/gpdb,cjcjameson/gpdb,royc1/gpdb,kaknikhil/gpdb,janebeckman/gpdb,0x0FFF/gpdb,lintzc/gpdb,edespino/gpdb,50wu/gpdb,janebeckman/gpdb,royc1/gpdb,lisakowen/gpdb,chrishajas/gpdb,xuegang/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,zaksoup/gpdb,zaksoup/gpdb,jmcatamney/gpdb