pgsql: Fix partial aggregation for variance(int4) and related aggregate

2018-06-21 Thread Tom Lane
Fix partial aggregation for variance(int4) and related aggregates. A typo in numeric_poly_combine caused bogus results for queries using it, but of course would only manifest if parallel aggregation is performed. Reported by Rajkumar Raghuwanshi. David Rowley did the diagnosis and the fix; I edi

pgsql: Fix partial aggregation for variance(int4) and related aggregate

2018-06-21 Thread Tom Lane
Fix partial aggregation for variance(int4) and related aggregates. A typo in numeric_poly_combine caused bogus results for queries using it, but of course would only manifest if parallel aggregation is performed. Reported by Rajkumar Raghuwanshi. David Rowley did the diagnosis and the fix; I edi