Initialise a variable as reported by valgrind
authorPavan Deolasee <[email protected]>
Tue, 10 May 2016 05:18:15 +0000 (10:48 +0530)
committerPavan Deolasee <[email protected]>
Tue, 10 May 2016 05:18:15 +0000 (10:48 +0530)
src/backend/executor/nodeWindowAgg.c

index 9892c94acc13685f920939d60491ea9f2a9e74f4..8d62ea6f40cca464c8555937beefbb55c8ff47ff 100644 (file)
@@ -2156,6 +2156,9 @@ initialize_peragg(WindowAggState *winstate, WindowFunc *wfunc,
                !contain_volatile_functions((Node *) wfunc))
        {
                peraggstate->transfn_oid = transfn_oid = aggform->aggmtransfn;
+#ifdef XCP
+               peraggstate->collectfn_oid = collectfn_oid = InvalidOid;
+#endif
                peraggstate->invtransfn_oid = invtransfn_oid = aggform->aggminvtransfn;
                peraggstate->finalfn_oid = finalfn_oid = aggform->aggmfinalfn;
                finalextra = aggform->aggmfinalextra;