pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix bug in calculations of hash join buckets. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix bug in calculations of hash join buckets. @ 2015-08-19 13:33 Kevin Grittner <kgrittn@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Kevin Grittner @ 2015-08-19 13:33 UTC (permalink / raw) To: pgsql-committers Fix bug in calculations of hash join buckets. Commit 8cce08f168481c5fc5be4e7e29b968e314f1b41e used a left-shift on a literal of 1 that could (in large allocations) be shifted by 31 or more bits. This was assigned to a local variable that was already declared to be a long to protect against overruns of int, but the literal in this shift needs to be declared long to allow it to work correctly in some compilers. Backpatch to 9.5, where the bug was introduced. Report and patch by KaiGai Kohei, slighly modified based on discussion. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/1cac8c98201cb0ed1a3592cf355a2670d3771689 Modified Files -------------- src/backend/executor/nodeHash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix bug in calculations of hash join buckets. @ 2015-08-19 13:33 Kevin Grittner <kgrittn@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Kevin Grittner @ 2015-08-19 13:33 UTC (permalink / raw) To: pgsql-committers Fix bug in calculations of hash join buckets. Commit 8cce08f168481c5fc5be4e7e29b968e314f1b41e used a left-shift on a literal of 1 that could (in large allocations) be shifted by 31 or more bits. This was assigned to a local variable that was already declared to be a long to protect against overruns of int, but the literal in this shift needs to be declared long to allow it to work correctly in some compilers. Backpatch to 9.5, where the bug was introduced. Report and patch by KaiGai Kohei, slighly modified based on discussion. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/24bf2ee22233244eb9e2c71de754b1c71258d004 Modified Files -------------- src/backend/executor/nodeHash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-08-19 13:33 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-08-19 13:33 pgsql: Fix bug in calculations of hash join buckets. Kevin Grittner <kgrittn@postgresql.org> 2015-08-19 13:33 pgsql: Fix bug in calculations of hash join buckets. Kevin Grittner <kgrittn@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