Add convenience macros to get the distribution type from ExecNodes and
RelationLocInfo structures.
While deciding whether a query can be FQSed or not, look at the FROM clause of
the query to find out the datanodes where to ship the query.
Use Query structure to construct DML queries to be sent to the datanodes.
The patch removes the functions create_remoteinsert_plan, create_remoteupdate_plan and create_remotedelete_plan.
Instead it adds a single function create_remote_dml_plan.
This is a fix for -w option in gtm_ctl start, but Nikhil Sontakke.

-------->8---------------->8----------
PFA, a patch to fix "gtm_ctl -w" behavior in GIT HEAD. I also tested
"-w -t nsecs" behavior and it seems to work as well. This patch can be
easily be backported to 1.0 if desired. I hope all these obnoxious gtm
startup issues are resolved now. Scripting was a bit painful because
of these issues.
--------8<----------------8<----------

	modified:   src/bin/gtm_ctl/gtm_ctl.c