Future-proof copying Aggref
Future-proof copying Aggref

Instead of enumerating every field in Aggref, just flat copy everything
during query normalization. Of course we still zero out the agglevelsup.
This is generally safe because additional fields will not confuse ORCA
later. Or if it will, it's more convenient to add fallback logic in
later stages of the code, e.g. in CTranslatorScalarToDXL

Signed-off-by: Jesse Zhang <58cb4a1fad2c21afe8ba00106a15922c2987b6b3@gmail.com>

greenplum-db/gpdb,xinzweb/gpdb,edespino/gpdb,edespino/gpdb,edespino/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,edespino/gpdb,ashwinstar/gpdb,50wu/gpdb,edespino/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,adam8157/gpdb,jmcatamney/gpdb,50wu/gpdb,edespino/gpdb,Chibin/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,xinzweb/gpdb,Chibin/gpdb,lisakowen/gpdb,50wu/gpdb,edespino/gpdb,50wu/gpdb,ashwinstar/gpdb,Chibin/gpdb,lisakowen/gpdb,xinzweb/gpdb,xinzweb/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,Chibin/gpdb,ashwinstar/gpdb,adam8157/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,lisakowen/gpdb,yuanzhao/gpdb,adam8157/gpdb,yuanzhao/gpdb,lisakowen/gpdb,Chibin/gpdb,adam8157/gpdb,lisakowen/gpdb,xinzweb/gpdb,yuanzhao/gpdb,lisakowen/gpdb,yuanzhao/gpdb,Chibin/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,xinzweb/gpdb,50wu/gpdb,lisakowen/gpdb,Chibin/gpdb,adam8157/gpdb,edespino/gpdb,50wu/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,adam8157/gpdb,yuanzhao/gpdb,Chibin/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,adam8157/gpdb,edespino/gpdb,ashwinstar/gpdb,50wu/gpdb,Chibin/gpdb,lisakowen/gpdb,edespino/gpdb,jmcatamney/gpdb,50wu/gpdb,xinzweb/gpdb,Chibin/gpdb,ashwinstar/gpdb,xinzweb/gpdb,yuanzhao/gpdb