Add a caveat to hash_seq_init_with_hash_value() header comment
Alexander Korotkov <akorotkov@postgresql.org>
Add a caveat to hash_seq_init_with_hash_value() header comment The typical use-case for hash_seq_init_with_hash_value() is syscache callback. Add a caveat that the default hash function doesn't match syscache hash function. So, one needs to define a custom hash function. Reported-by: Pavel Stehule Discussion: https://postgr.es/m/CAFj8pRAXmv6eyYx%3DE_BTfyK%3DO_%2ByOF8sXB%3D0bn9eOBt90EgWRA%40mail.gmail.com Reviewed-by: Pavel Stehule
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/hash/dynahash.c | modified | +5 −0 |
Discussion
- pgsql: Introduce hash_search_with_hash_value() function 19 messages · 2024-08-07 → 2024-08-23