forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf2fc98f
committed
Further twiddling of nodeHash.c hashtable sizing calculation.
On reflection, the submitted patch didn't really work to prevent therequest size from exceeding MaxAllocSize, because of the fact that we'dhappily round nbuckets up to the next power of 2 after we'd limited it tomax_pointers. The simplest way to enforce the limit correctly is toround 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 usefulat all, is properly applied after that.)1 parenta31e64d commitf2fc98f
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
| 418 | + | |
418 | 419 |
| |
419 | 420 |
| |
420 | 421 |
| |
| |||
485 | 486 |
| |
486 | 487 |
| |
487 | 488 |
| |
488 |
| - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
489 | 495 |
| |
490 | 496 |
| |
491 | 497 |
| |
492 | 498 |
| |
493 | 499 |
| |
| 500 | + | |
494 | 501 |
| |
495 |
| - | |
| 502 | + | |
496 | 503 |
| |
497 | 504 |
| |
498 | 505 |
| |
|
0 commit comments
Comments
(0)