MADlib package versions for Greenplum v4.2 & v4.3 are different. When upgrading from Greenplum v4.2 to v4.3, we need to uninstall and then reinstall the correct MADlib package.
The following error is seen:
ERROR: incompatible library "/xxx/madlib/Versions/1.6/ports/greenplum/4.2/lib/libmadlib.so": version mismatch (dfmgr.c:385) DETAIL: Server version is Greenplum 4.3 (header version: 1), library is Greenplum 4.2 (header version: 0). ERROR: function madlib.__array_indexed_agg_sfunc(double precision[], double precision, bigint, bigint) does not exist