Add T_PlannedStmt node in commandtag creation
Add T_PlannedStmt node in commandtag creation

Commit 9cbd0c155d1602aad879f510256b626c58942080 which was a part of
8.3 removed the Query structure from the executor API and replaced
with PlannedStmt. This hunk seems to have gone missing in the merge
causing updates in non-volatile functions to hit assertion failure.
Below is a sample query which triggered the error:

  CREATE TABLE bar (c int, d int);
  CREATE FUNCTION func1_mod_int_stb(x int) RETURNS int AS $$
  BEGIN
    UPDATE bar SET d = d+1 WHERE c = $1;
    RETURN $1 + 1;
  END
  $$ LANGUAGE plpgsql STABLE MODIFIES SQL DATA;
  SELECT * FROM func1_mod_int_stb(5) order by 1;

rvs/gpdb,janebeckman/gpdb,jmcatamney/gpdb,lisakowen/gpdb,adam8157/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,rvs/gpdb,janebeckman/gpdb,jmcatamney/gpdb,edespino/gpdb,edespino/gpdb,yuanzhao/gpdb,Quikling/gpdb,rvs/gpdb,50wu/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,50wu/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,janebeckman/gpdb,50wu/gpdb,janebeckman/gpdb,cjcjameson/gpdb,xinzweb/gpdb,lisakowen/gpdb,cjcjameson/gpdb,adam8157/gpdb,lisakowen/gpdb,edespino/gpdb,kaknikhil/gpdb,rvs/gpdb,Quikling/gpdb,yuanzhao/gpdb,lintzc/gpdb,greenplum-db/gpdb,edespino/gpdb,50wu/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,edespino/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,lintzc/gpdb,Chibin/gpdb,lintzc/gpdb,xinzweb/gpdb,xinzweb/gpdb,cjcjameson/gpdb,Chibin/gpdb,edespino/gpdb,yuanzhao/gpdb,rvs/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,Quikling/gpdb,jmcatamney/gpdb,janebeckman/gpdb,50wu/gpdb,xinzweb/gpdb,lintzc/gpdb,jmcatamney/gpdb,lintzc/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,lisakowen/gpdb,Quikling/gpdb,greenplum-db/gpdb,xinzweb/gpdb,adam8157/gpdb,janebeckman/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,xinzweb/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,edespino/gpdb,Quikling/gpdb,ashwinstar/gpdb,rvs/gpdb,lintzc/gpdb,rvs/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,janebeckman/gpdb,Chibin/gpdb,adam8157/gpdb,yuanzhao/gpdb,edespino/gpdb,rvs/gpdb,adam8157/gpdb,Chibin/gpdb,adam8157/gpdb,rvs/gpdb,adam8157/gpdb,xinzweb/gpdb,xinzweb/gpdb,Quikling/gpdb,lisakowen/gpdb,Chibin/gpdb,jmcatamney/gpdb,Chibin/gpdb,kaknikhil/gpdb,lisakowen/gpdb,50wu/gpdb,Quikling/gpdb,cjcjameson/gpdb,Chibin/gpdb,50wu/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,edespino/gpdb,janebeckman/gpdb,yuanzhao/gpdb,rvs/gpdb,lintzc/gpdb,lintzc/gpdb,Quikling/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,adam8157/gpdb,Chibin/gpdb,lintzc/gpdb,lisakowen/gpdb,Quikling/gpdb,cjcjameson/gpdb,janebeckman/gpdb,janebeckman/gpdb,Chibin/gpdb,yuanzhao/gpdb,Quikling/gpdb,Chibin/gpdb,edespino/gpdb,50wu/gpdb,yuanzhao/gpdb,lisakowen/gpdb,kaknikhil/gpdb