pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix partial aggregation for variance(int4) and related aggregate 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix partial aggregation for variance(int4) and related aggregate @ 2018-06-21 20:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-06-21 20:18 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 editorialized rather heavily on his regression test additions. Back-patch to v10 where the breakage was introduced (by 9cca11c91). Discussion: https://postgr.es/m/CAKcux6nU4E2x8nkSBpLOT2DPvQ5LviJ3SGyAN6Sz7qDH4G4+Pw@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/ec4719cd155d1d58c8aa7c06c7ef24aef6e67622 Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- src/test/regress/expected/aggregates.out | 27 +++++++++++++++++++++++++++ src/test/regress/sql/aggregates.sql | 18 ++++++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix partial aggregation for variance(int4) and related aggregate @ 2018-06-21 20:18 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-06-21 20:18 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 editorialized rather heavily on his regression test additions. Back-patch to v10 where the breakage was introduced (by 9cca11c91). Discussion: https://postgr.es/m/CAKcux6nU4E2x8nkSBpLOT2DPvQ5LviJ3SGyAN6Sz7qDH4G4+Pw@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b8a1d0302063a8adbfe3f4c43ee457fe724be42a Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- src/test/regress/expected/aggregates.out | 27 +++++++++++++++++++++++++++ src/test/regress/sql/aggregates.sql | 18 ++++++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-06-21 20:18 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-06-21 20:18 pgsql: Fix partial aggregation for variance(int4) and related aggregate Tom Lane <tgl@sss.pgh.pa.us> 2018-06-21 20:18 pgsql: Fix partial aggregation for variance(int4) and related aggregate Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox