BUG #15039: some question about hash index code - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15039: some question about hash index code
Date
Msg-id 151739848647.1239.12528851873396651946@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #15039: some question about hash index code
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15039
Logged by:          lixian zou
Email address:      zoulx1982@163.com
PostgreSQL version: 10.0
Operating system:   source code
Description:

hi,
i read hash index code , and found in _hash_addovflpage function, there is
such code :
if (metap->hashm_firstfree == orig_firstfree)
{
    metap->hashm_firstfree = bit + 1;
    MarkBufferDirty(metabuf);
}

i found no any chang for metap,metap->hashm_firstfree,and initial the two
variable is equal, so maybe the if statement is redundant?

thanks.


pgsql-bugs by date:

Previous
From: Greg Clough
Date:
Subject: RE: BUG #15038: Upgrade 8.4 to 9.2 - LC_Collate differs
Next
From: Amit Kapila
Date:
Subject: Re: BUG #15039: some question about hash index code