Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>,
Alvaro Herrera <alvherre@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>, James Coleman <jtc331@gmail.com>,
PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2019-12-21T15:02:05Z
Lists: pgsql-bugs
Thomas Munro <thomas.munro@gmail.com> writes: > Yeah, I suppose it would be nice to get something reusable out of this > rather than a local definition only. The other important > characteristic is the direction of rotation, so here's a version that > defines pg_rotate_right32() in pg_bitutils.h. In back-branches > without that header we could define it locally. That looks like a good approach. One thought is that you could rely on BITS_PER_BYTE from c.h, rather than CHAR_BIT; then you don't have to #include <limits.h> in bitutils.h, which seems like header creep we could do without. (I think most other places that want this constant use BITS_PER_BYTE, too.) regards, tom lane
Commits
-
Rotate instead of shifting hash join batch number.
- 5c0a132cf141 9.4.26 landed
- 893eaf0be8be 9.5.21 landed
- 15861deb65cd 9.6.17 landed
- 8e89bc6dfd3d 10.12 landed
- 9e551a14cb45 11.7 landed
- 8052aaf521e4 12.2 landed
- e69d64454778 13.0 landed