diff options
Diffstat (limited to 'src/backend/access')
| -rw-r--r-- | src/backend/access/hash/hashsort.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/access/hash/hashsort.c b/src/backend/access/hash/hashsort.c index aa61e39f26a..19563148d05 100644 --- a/src/backend/access/hash/hashsort.c +++ b/src/backend/access/hash/hashsort.c @@ -42,9 +42,10 @@ struct HSpool Relation index; /* - * We sort the hash keys based on the buckets they belong to. Below masks - * are used in _hash_hashkey2bucket to determine the bucket of given hash - * key. + * We sort the hash keys based on the buckets they belong to, then by the + * hash values themselves, to optimize insertions onto hash pages. The + * masks below are used in _hash_hashkey2bucket to determine the bucket of + * a given hash key. */ uint32 high_mask; uint32 low_mask; |
