pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: zoulx1982@163.com
Subject: BUG #15039: some question about hash index code
Date: Wed, 31 Jan 2018 11:34:46 +0000
Message-ID: <151739848647.1239.12528851873396651946@wrigleys.postgresql.org> (raw)

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. 



view thread (7+ messages)  latest in thread

Message-ID: <151739848647.1239.12528851873396651946@wrigleys.postgresql.org>
Permalink:  ../151739848647.1239.12528851873396651946@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/151739848647.1239.12528851873396651946@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, zoulx1982@163.com
  Subject: Re: BUG #15039: some question about hash index code
  In-Reply-To: <151739848647.1239.12528851873396651946@wrigleys.postgresql.org>
  References: <151739848647.1239.12528851873396651946@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox