Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Usr0w-0005zN-CM for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Jun 2013 09:00:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Usr0v-0002XN-D0 for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Jun 2013 09:00:13 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Usr0t-0002Wf-Qj for pgsql-hackers@postgresql.org; Sat, 29 Jun 2013 09:00:11 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Usr0s-0004ne-0u for pgsql-hackers@postgresql.org; Sat, 29 Jun 2013 09:00:11 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 995AE283BA; Sat, 29 Jun 2013 02:00:09 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 93032B077E; Sat, 29 Jun 2013 02:00:09 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 44589120032; Sat, 29 Jun 2013 02:06:23 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Sat, 29 Jun 2013 02:06:21 -0700 (PDT) Message-ID: <51CEA214.8090805@vmware.com> Date: Sat, 29 Jun 2013 12:00:04 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Antonin Houska CC: pgsql-hackers@postgresql.org Subject: Re: GIN improvements part 1: additional information References: <51CC4A44.2080905@gmail.com> In-Reply-To: <51CC4A44.2080905@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -5.5 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 27.06.2013 17:20, Antonin Houska wrote: > I was curious about the new layout of the data page, so I spent a while > looking into the code. > It's interesting, but I suspect 2 things are not o.k.: > > * gindatapage.c:dataIsEnoughSpace() - 'i++' in the for loop should > probably be 'j++', otherwise it loops forever Hmm. It won't loop forever, i is counting the number of entries that fit on the page, while j is used to loop through the items being added. However, i isn't actually used for anything (and isn't initialized either), so it's just dead code. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers