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
Fix type in docs for parameters max_coordinators and max_datanodes using upper case
Add release notes of 1.0.2 in master branch

Such notes need to be kept in sync in all the upstream branches of the release
that is concerned. For example 1.0.X notes need currently to be updated in 1.0
stable and master. If in the future 1.1 stable is created, the release notes
of 1.0 will be added to it as well as on master. On the contrary, as downstream
notes do not need to be updated, 1.1 notes will not be included in 1.0 stable.

This helps in keeping a consistent release note behavior for all the branches.
Merge pull request #5 from postgres-xc/master

Sync with the master