Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> writes:
> Interestingly, the hash code checks for INT_MAX overflows on a number of
> places, but does not check for this ...
Yeah, and at least at one time there were checks to prevent the hash table
request from exceeding MaxAllocSize. Did those get removed by somebody?
regards, tom lane