From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: comments in hash_alloc_buckets |
Date: | 2017-03-25 05:38:16 |
Message-ID: | CAA4eK1JzrYOHRcLpcEOGGMhZV5qoDOTCq_rSVEKT5GqpYBg0bg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Mar 21, 2017 at 10:11 AM, Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> wrote:
> Hi,
>
> While working on - [1], I realised that the following comments in
> _hash_alloc_buckets() needs to be corrected.
>
> /*
> * Initialize the freed overflow page. Just zeroing the page won't work,
> * See _hash_freeovflpage for similar usage.
> */
> _hash_pageinit(page, BLCKSZ);
>
> Attached is the patch that corrects above comment. Thanks.
>
- * Initialize the freed overflow page. Just zeroing the page won't work,
+ * Initialize the last page in hash index.
I think saying ".. last page in hash index" sounds slightly awkward as
this is the last page for current split point, how about just
"Initialize the page. ..."
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-03-25 05:58:31 | Re: Order-preserving function transforms and EquivalenceClass |
Previous Message | Amit Kapila | 2017-03-25 05:32:55 | Re: Add pgstathashindex() to get hash index table statistics. |