pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix incorrect calcSumX2 in numeric deserialize functions 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:48 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:48 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6a93535798aa9219d01c01c67161a78780e2af1a Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:48 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:48 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ab274a1e966516277bf4e75592cb88dc558e2200 Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:49 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ea24eadda01088e0fa43d7961244db4ffd9961e9 Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:49 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/583b414e51105ba6554137e0df166a68b149b593 Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:50 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b8d50e1425277ad4a8b549e3523e13578cdd74e5 Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:50 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/38e07ce9847b03f24d6c1f023e339556f436a36b Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix incorrect calcSumX2 in numeric deserialize functions @ 2026-09-29 02:50 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-09-29 02:50 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect calcSumX2 in numeric deserialize functions calcSumX2 is used to inform the aggregate transition function whether it should include the square of the transition value in the aggregate state. The deserialize functions for various numeric aggregates that do use calcSumX2 weren't properly setting the property to true. This does not matter in core as we never perform any aggregate transitions after a deserialize operation. This fix is only required for external code which plumbs aggregate paths together in such a way that could result in aggregate transitions being performed after states have been deserialized. Author: Maxime Schoemans <maxime.schoemans@enterprisedb.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Discussion: https://postgr.es/m/FEBF5C3D-CC53-455F-AA9D-4D377A2E957C@enterprisedb.com Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/42ebc601feca2fd5eb065108ec79da12a227d66e Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2026-09-29 02:50 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-09-29 02:48 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org> 2026-09-29 02:48 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org> 2026-09-29 02:49 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org> 2026-09-29 02:49 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org> 2026-09-29 02:50 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org> 2026-09-29 02:50 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org> 2026-09-29 02:50 pgsql: Fix incorrect calcSumX2 in numeric deserialize functions David Rowley <drowley@postgresql.org>
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