        This should fix a bug where a row that was updated or deleted that had another row inserted/updated to its old value during the same statement or other statements before the integrity check for noaction would incorrectly error.  This could happen in deferred constraints or due to triggers or functions. It's effectively a reworking of the previous patch that did a not exists to instead do a separate check.
        This should fix a bug where a row that was updated or
deleted that had another row inserted/updated to its old
value during the same statement or other statements before the
integrity check for noaction would incorrectly error.  This
could happen in deferred constraints or due to triggers or
functions. It's effectively a reworking of the previous patch that
did a not exists to instead do a separate check.

Stephan Szabo

ahachete/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,Postgres-XL/Postgres-XL,tpostgres-projects/tPostgres,zeroae/postgres-xl,ovr/postgres-xl,ashwinstar/gpdb,Quikling/gpdb,greenplum-db/gpdb,lpetrov-pivotal/gpdb,arcivanov/postgres-xl,atris/gpdb,xuegang/gpdb,ahachete/gpdb,rvs/gpdb,royc1/gpdb,rvs/gpdb,yuanzhao/gpdb,rvs/gpdb,rubikloud/gpdb,edespino/gpdb,greenplum-db/gpdb,Quikling/gpdb,oberstet/postgres-xl,kmjungersen/PostgresXL,ashwinstar/gpdb,Chibin/gpdb,yuanzhao/gpdb,janebeckman/gpdb,lintzc/gpdb,janebeckman/gpdb,postmind-net/postgres-xl,Postgres-XL/Postgres-XL,foyzur/gpdb,tpostgres-projects/tPostgres,kaknikhil/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,yazun/postgres-xl,0x0FFF/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,atris/gpdb,adam8157/gpdb,atris/gpdb,Quikling/gpdb,CraigHarris/gpdb,arcivanov/postgres-xl,lintzc/gpdb,cjcjameson/gpdb,ovr/postgres-xl,royc1/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,adam8157/gpdb,janebeckman/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,ahachete/gpdb,ahachete/gpdb,cjcjameson/gpdb,zeroae/postgres-xl,foyzur/gpdb,edespino/gpdb,50wu/gpdb,cjcjameson/gpdb,zaksoup/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,chrishajas/gpdb,zeroae/postgres-xl,CraigHarris/gpdb,jmcatamney/gpdb,xuegang/gpdb,janebeckman/gpdb,CraigHarris/gpdb,rvs/gpdb,yuanzhao/gpdb,lintzc/gpdb,randomtask1155/gpdb,tangp3/gpdb,cjcjameson/gpdb,atris/gpdb,Chibin/gpdb,xinzweb/gpdb,zaksoup/gpdb,chrishajas/gpdb,tangp3/gpdb,royc1/gpdb,cjcjameson/gpdb,edespino/gpdb,rubikloud/gpdb,janebeckman/gpdb,xinzweb/gpdb,atris/gpdb,Chibin/gpdb,Quikling/gpdb,zaksoup/gpdb,oberstet/postgres-xl,chrishajas/gpdb,janebeckman/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,greenplum-db/gpdb,kmjungersen/PostgresXL,lintzc/gpdb,tangp3/gpdb,xinzweb/gpdb,lintzc/gpdb,rubikloud/gpdb,techdragon/Postgres-XL,rvs/gpdb,cjcjameson/gpdb,ovr/postgres-xl,50wu/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,greenplum-db/gpdb,Quikling/gpdb,adam8157/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,zaksoup/gpdb,royc1/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,techdragon/Postgres-XL,lpetrov-pivotal/gpdb,tangp3/gpdb,chrishajas/gpdb,lpetrov-pivotal/gpdb,chrishajas/gpdb,lisakowen/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,Quikling/gpdb,lpetrov-pivotal/gpdb,ahachete/gpdb,snaga/postgres-xl,oberstet/postgres-xl,50wu/gpdb,adam8157/gpdb,50wu/gpdb,edespino/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,Quikling/gpdb,yuanzhao/gpdb,xuegang/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,rvs/gpdb,oberstet/postgres-xl,postmind-net/postgres-xl,tpostgres-projects/tPostgres,rubikloud/gpdb,0x0FFF/gpdb,ahachete/gpdb,foyzur/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,Chibin/gpdb,yazun/postgres-xl,royc1/gpdb,snaga/postgres-xl,rvs/gpdb,edespino/gpdb,xuegang/gpdb,Chibin/gpdb,kmjungersen/PostgresXL,lisakowen/gpdb,chrishajas/gpdb,Quikling/gpdb,yazun/postgres-xl,yazun/postgres-xl,foyzur/gpdb,snaga/postgres-xl,CraigHarris/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,yazun/postgres-xl,ahachete/gpdb,arcivanov/postgres-xl,50wu/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,pavanvd/postgres-xl,randomtask1155/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,rvs/gpdb,edespino/gpdb,adam8157/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,atris/gpdb,greenplum-db/gpdb,kaknikhil/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,yuanzhao/gpdb,xuegang/gpdb,foyzur/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,Chibin/gpdb,zaksoup/gpdb,royc1/gpdb,cjcjameson/gpdb,Chibin/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,randomtask1155/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,tangp3/gpdb,yuanzhao/gpdb,xinzweb/gpdb,yuanzhao/gpdb,rubikloud/gpdb,Chibin/gpdb,xinzweb/gpdb,CraigHarris/gpdb,50wu/gpdb,arcivanov/postgres-xl,royc1/gpdb,tangp3/gpdb,xinzweb/gpdb,Chibin/gpdb,xinzweb/gpdb,xinzweb/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,xuegang/gpdb,jmcatamney/gpdb,lintzc/gpdb,foyzur/gpdb,atris/gpdb,edespino/gpdb,adam8157/gpdb,zaksoup/gpdb,zaksoup/gpdb,janebeckman/gpdb,randomtask1155/gpdb,rubikloud/gpdb,yuanzhao/gpdb,pavanvd/postgres-xl,zaksoup/gpdb,chrishajas/gpdb,0x0FFF/gpdb,adam8157/gpdb,lisakowen/gpdb,Quikling/gpdb,ahachete/gpdb,edespino/gpdb,lisakowen/gpdb,lisakowen/gpdb,janebeckman/gpdb,foyzur/gpdb,chrishajas/gpdb,edespino/gpdb,rubikloud/gpdb,50wu/gpdb,50wu/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,xuegang/gpdb,snaga/postgres-xl,adam8157/gpdb,xuegang/gpdb,xuegang/gpdb,pavanvd/postgres-xl,kaknikhil/gpdb,ovr/postgres-xl,rvs/gpdb,kmjungersen/PostgresXL,Quikling/gpdb,edespino/gpdb,randomtask1155/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,atris/gpdb,royc1/gpdb,tangp3/gpdb,arcivanov/postgres-xl,rvs/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,snaga/postgres-xl,lintzc/gpdb,zeroae/postgres-xl,rubikloud/gpdb,Postgres-XL/Postgres-XL,kaknikhil/gpdb,tpostgres-projects/tPostgres,lpetrov-pivotal/gpdb,foyzur/gpdb