This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and CHECK constraints.
This patch makes pg_get_constraintdef support UNIQUE, PRIMARY KEY and
CHECK constraints.

There are apparently no other types of constraint in pg_constraint, so
now all bases are covered.  Also, this patch assumes that consrc for a
CHECK constraint is always bracketed so that it's not necessary to add
extra brackets.

Christopher Kings-Lynne

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