forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitac27c74

Amit Kapila
Fix the overrun in hash index metapage for smaller block sizes.
The commit620b49a changed the value of HASH_MAX_BITMAPS with the intentto allow many non-unique values in hash indexes without worrying to reachthe limit of the number of overflow pages. At that time, this didn'toccur to us that it can overrun the block for smaller block sizes.Choose the value of HASH_MAX_BITMAPS based on BLCKSZ such that it givesthe same answer as now for the cases where the overrun doesn't occur, andsome other sufficiently-value for the cases where an overrun currentlydoes occur. This allows us not to change the behavior in any case thatcurrently works, so there's really no reason for a HASH_VERSION bump.Author: Dilip KumarReviewed-by: Amit KapilaBackpatch-through: 10Discussion:https://postgr.es/m/CAA4eK1LtF4VmU4mx_+i72ff1MdNZ8XaJMGkt2HV8+uSWcn8t4A@mail.gmail.com1 parentbe54b37 commitac27c74
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 |
| |
235 |
| - | |
| 238 | + | |
236 | 239 |
| |
237 | 240 |
| |
238 | 241 |
| |
|
0 commit comments
Comments
(0)