Suspicious check (src/backend/access/gin/gindatapage.c)

From: Gaetano Mendola <mendola(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Suspicious check (src/backend/access/gin/gindatapage.c)
Date: 2014-09-11 22:35:58
Message-ID: CAJycT5ozTB81Erk+T7vGA1DkmTfuSitt6AjGwfDONLykukO9ow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At line 650 I can read:

if ((leaf->lsize - segsize) - (leaf->lsize - segsize) < BLCKSZ / 4)
break;

I believe one of the two should be leaf->rsize

--
cpp-today.blogspot.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2014-09-11 22:40:47 Re: pg_upgrade and epoch
Previous Message Stephen Frost 2014-09-11 22:18:31 Re: proposal: ignore null fields in not relation type composite type based constructors