Fix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere in the string, not just at the start.  Per bug #4629 from Martin Blazek.
Fix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere
in the string, not just at the start.  Per bug #4629 from Martin Blazek.

Back-patch to 8.2; prior versions don't have the problem, at least not in
the reported case, because they don't try to recognize INTO in non-SELECT
statements.  (IOW, this is really fallout from the RETURNING patch.)

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