Fix dumping of DEFERRABLE/INITIALLY DEFERRED:
Fix dumping of DEFERRABLE/INITIALLY DEFERRED:

> The big problem is that while pg_dump's dump_trigger() looks at
> tginitdeferred and dumps accordingly, pg_get_constraintdef doesn't look
> at tginitdeferred, and therefore doesn't record the requirement as part
> of ALTER TABLE ADD CONSTRAINT.

pg_get_constraintdef should probably be looking at condeferrable and
condeferred in the pg_constraint row it's looking at.  Maybe something
like the attached.

(Added, output only non-default values.)

Stephan Szabo

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