Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.
Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.

>From the create_aggregate man page...

"The arguments to state-transition-function-1 must be
(stype1,basetype), and its return value must be stype1."

create aggregate MIN (sfunc1 = int2smaller,
                      basetype = int2,
                      stype1 = int2);

will fail becase int2smaller and int2larger are in pg_proc
as returning an int4.  Can't happen since both args have to
be int2.

From: Darren King <17a805ad6f55ec6be7c737e0f437900b144c518c@abs.net>

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