forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit81c5e46
committed
Introduce 64-bit hash functions with a 64-bit seed.
This will be useful for hash partitioning, which needs a way to seedthe hash functions to avoid problems such as a hash index on a hashpartitioned table clumping all values into a small portion of thebucket space; it's also useful for anything that wants a 64-bit hashvalue rather than a 32-bit hash value.Just in case somebody wants a 64-bit hash value that is compatiblewith the existing 32-bit hash values, make the low 32-bits of the64-bit hash value match the 32-bit hash value when the seed is 0.Robert Haas and Amul SulDiscussion:http://postgr.es/m/CA+Tgmoafx2yoJuhCQQOL5CocEi-w_uG4S2xT0EtgiJnPGcHW3g@mail.gmail.com1 parent2d44c58 commit81c5e46
File tree
33 files changed
+1555
-42
lines changed- doc/src/sgml
- src
- backend
- access/hash
- commands
- utils
- adt
- cache
- include
- access
- catalog
- utils
- test/regress
- expected
- sql
33 files changed
+1555
-42
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
| 439 | + | |
| 440 | + | |
440 | 441 |
| |
441 | 442 |
| |
442 | 443 |
| |
| |||
451 | 452 |
| |
452 | 453 |
| |
453 | 454 |
| |
454 |
| - | |
| 455 | + | |
455 | 456 |
| |
456 | 457 |
| |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
457 | 466 |
| |
458 | 467 |
| |
459 | 468 |
| |
|
0 commit comments
Comments
(0)