aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-10-04 15:55:07 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-10-04 15:55:07 -0400
commit4075fc4b97f9b4988250ede0288849bf78cab90c (patch)
tree556b6ba54aeb3526c3cbf2188458afb34a675029 /src/tutorial/basics.source
parentff4cbc1ff3d23fe9c40110c8953e0d07457b136b (diff)
downloadpostgresql-4075fc4b97f9b4988250ede0288849bf78cab90c.tar.gz
postgresql-4075fc4b97f9b4988250ede0288849bf78cab90c.zip
Further twiddling of nodeHash.c hashtable sizing calculation.
On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.)
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions